lowercase query

This commit is contained in:
derpystuff 2023-06-11 01:10:34 +02:00
parent 27699a36b4
commit d36939b81c

View file

@ -113,7 +113,7 @@ module.exports = {
let results = []
for(const c of context.commandClient.commands){
if(c.name.includes(args.command) || c.aliases.filter((f)=>{return f.includes(args.command)}).length >= 1){
if(c.name.includes(args.command.toLowerCase()) || c.aliases.filter((f)=>{return f.includes(args.command.toLowerCase())}).length >= 1){
if(c.metadata.explicit && !context.channel.nsfw) continue;
results.push(c)
}