mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
lowercase query
This commit is contained in:
parent
27699a36b4
commit
d36939b81c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue