Upped prefix length limit

This commit is contained in:
2021-09-19 01:33:27 -07:00
parent f1a1ef5984
commit be784b66ae
+2 -2
View File
@@ -50,7 +50,7 @@ const EMBEDS = {
PREFIX_IS_MENTION: (data: Message | Interaction) => { PREFIX_IS_MENTION: (data: Message | Interaction) => {
return makeErrorEmbed ({ return makeErrorEmbed ({
title: 'Prefix cannot be mention of me', title: 'Prefix cannot be mention of me',
description: `You can already call me by mentioning me. I got you covered, don't worry`, description: `You can already call me by mentioning me. I got that covered, don't worry`,
user: (data instanceof Interaction) ? data.user : data.author user: (data instanceof Interaction) ? data.user : data.author
}); });
}, },
@@ -109,7 +109,7 @@ export default class Settings {
if(!newPrefix) if(!newPrefix)
return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.NO_PREFIX_PROVIDED(data)] }); return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.NO_PREFIX_PROVIDED(data)] });
if(newPrefix.length > 100) if(newPrefix.length > 200)
return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.PREFIX_TOO_LONG(data)] }); return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.PREFIX_TOO_LONG(data)] });
if(newPrefix.startsWith(`<@!${DiscordProvider.client.user?.id}>`)) if(newPrefix.startsWith(`<@!${DiscordProvider.client.user?.id}>`))