refactor(example): remove deprecated event listener
This commit is contained in:
parent
b4e2726438
commit
8ce04b387d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue