fix deprecation issues
This commit is contained in:
31 files changed
+586
-1933
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "ping",
|
||||
@@ -19,9 +19,9 @@ module.exports = {
|
||||
*/
|
||||
run: async (client, interaction, args, { GuildDB }) => {
|
||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
||||
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
|
||||
}
|
||||
interaction.send('Pong!');
|
||||
interaction.send({ content: 'Pong!' });
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user