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

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