fix(bot-discord): fix reserved word

This commit is contained in:
GramingFoxTeam
2023-08-13 18:56:04 +03:00
parent eb4eab2fb1
commit 4cadf4a8f1

View File

@@ -3,7 +3,7 @@ import { Events } from 'discord.js';
export default {
name: Events.MessageCreate,
once: false,
execute(helper, config, msg) {
async execute(helper, config, msg) {
if (!msg.guild || msg.system || msg.webhookId || msg.author.bot) return;
if (msg.content.startsWith('?')) {
const [cmd, args] = msg.content.replace('?', '').split(/\s/g);