mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-11 07:33:14 -04:00
fixes an issue with prefixes
This commit is contained in:
parent
a9c851c8d9
commit
f3cb7dea56
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ commandClient.on('commandDelete', async ({context, reply}) => {
|
|||
if(context.message?.deleted) return reply.delete();
|
||||
|
||||
let hasPrefix = false;
|
||||
for(const p of commandPrefixes) if(context.message.content.startsWith(p)) hasPrefix = true;
|
||||
for(const p of commandPrefixes) if(context.message.content.toLowerCase().startsWith(p)) hasPrefix = true;
|
||||
if(context.message.content.startsWith(context.client.user.mention)) hasPrefix = true;
|
||||
|
||||
if(!reply.deleted && !hasPrefix) reply.delete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue