fix deprecated method

This commit is contained in:
itsMapleLeaf
2023-09-27 22:49:32 -05:00
parent 104b175931
commit 0bab505994
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"reacord": patch
---
fix DJS deprecation warning on isStringSelectMenu

View File

@@ -37,7 +37,7 @@ export class ReacordDiscordJs extends Reacord {
super(config) super(config)
client.on("interactionCreate", (interaction) => { client.on("interactionCreate", (interaction) => {
if (interaction.isButton() || interaction.isSelectMenu()) { if (interaction.isButton() || interaction.isStringSelectMenu()) {
this.handleComponentInteraction( this.handleComponentInteraction(
this.createReacordComponentInteraction(interaction), this.createReacordComponentInteraction(interaction),
) )
@@ -296,7 +296,7 @@ export class ReacordDiscordJs extends Reacord {
} }
} }
if (interaction.isSelectMenu()) { if (interaction.isStringSelectMenu()) {
return { return {
...baseProps, ...baseProps,
type: "select", type: "select",