refactor(example): remove deprecated event listener

This commit is contained in:
Snowflake107 2021-07-05 13:18:16 +05:45
parent b4e2726438
commit 8ce04b387d

View file

@ -152,7 +152,7 @@ client.on("messageCreate", async (message) => {
} }
}); });
client.on("interaction", async (interaction) => { client.on("interactionCreate", async (interaction) => {
if (!interaction.isCommand() || !interaction.guildId) return; if (!interaction.isCommand() || !interaction.guildId) return;
if (!(interaction.member instanceof GuildMember) || !interaction.member.voice.channel) { if (!(interaction.member instanceof GuildMember) || !interaction.member.voice.channel) {