mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -10,7 +10,6 @@ module.exports = class FontArgumentType extends ArgumentType {
|
||||
const choice = value.toLowerCase();
|
||||
let found = this.client.fonts.filter(font => {
|
||||
if (font.isFallback) return false;
|
||||
if (font.isVariant) return false;
|
||||
if (font.name.toLowerCase().includes(choice)) return true;
|
||||
if (font.filenameNoExt.toLowerCase().includes(choice)) return true;
|
||||
return false;
|
||||
@@ -33,7 +32,6 @@ module.exports = class FontArgumentType extends ArgumentType {
|
||||
const choice = value.toLowerCase();
|
||||
const found = this.client.fonts.filter(font => {
|
||||
if (font.isFallback) return false;
|
||||
if (font.isVariant) return false;
|
||||
if (font.name.toLowerCase().includes(choice)) return true;
|
||||
if (font.filenameNoExt.toLowerCase().includes(choice)) return true;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user