Skip to content

Commit ce5f421

Browse files
committed
fix: warning didn't post deprecated warning
1 parent e676152 commit ce5f421

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

commands/warn.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ module.exports.run = async (interaction) => {
66
messageFail(interaction, `You are not authorized to use \`/${module.exports.data.name}\``);
77
return;
88
}
9-
const embed = new MessageEmbed();
10-
embed.setColor(16755456);
11-
embed.setDescription('This command has been deprecated. Use `/memo` instead');
12-
const channel = await client.channels.cache.get(channelID);
13-
channel.send({ embeds: [embed] });
9+
messageFail(interaction, 'This command has been deprecated. Use `/memo` instead');
1410
};
1511

1612
module.exports.data = new CmdBuilder()

0 commit comments

Comments
 (0)