fix(discord-bot): only send lowercased text

This commit is contained in:
GramingFoxTeam
2022-11-16 18:09:42 +03:00
parent 92571085b7
commit 78037580dc
5 changed files with 6 additions and 5 deletions

View File

@@ -3,9 +3,7 @@ export default {
once: false,
async execute(cb) {
const admins = await global.bot.getChatAdministrators(cb.message.chat.id);
const isAdmin = admins.find(
(admin) => admin.user.id === cb.from.id
);
const isAdmin = admins.find((admin) => admin.user.id === cb.from.id);
if (!isAdmin)
return global.bot.sendMessage(