You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redundant code needs to be cleaned up in ChannelCheck.js
It needs to be simplified if at all possible
Example:
//check if the user has been banned from using the bot if(gate.BANNED_USERS.includes(messageAuth.id)){message.delete();constbanEmbed=newMessageEmbed().setColor('#ff3505').setTitle('User ban notice').setDescription(`<@${messageAuth.id}>, You have been banned from using this bot by the owner.`,);message.channel.send(banEmbed).then(msg=>{msg.delete({timeout: 20000})})return;}
and
//check if the guild has been banned from using the bot if(gate.BANNED_GUILDS.includes(message.guild.id)){message.delete();constbanEmbed=newMessageEmbed().setColor('#ff3505').setTitle('Guild ban notice').setDescription(`<@${messageAuth.id}>, This guild has been banned from using this bot by the owner.`,);message.channel.send(banEmbed).then(msg=>{msg.delete({timeout: 20000})})return;}
The text was updated successfully, but these errors were encountered:
Redundant code needs to be cleaned up in
ChannelCheck.js
It needs to be simplified if at all possible
Example:
and
The text was updated successfully, but these errors were encountered: