Updated ephemreal deprecation

This commit is contained in:
2025-01-28 21:14:50 +01:00
parent a70bd4c934
commit f58c71f667
21 changed files with 67 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType } from "discord.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, MessageFlags } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { SubCommmndClient } from "~/typings"
@@ -126,7 +126,7 @@ const cmd: SubCommmndClient = async (interaction, client) => {
if (page === 1) {
await i.reply({
content: "You are already at the first page",
ephemeral: true
flags: MessageFlags.Ephemeral
})
return
}
@@ -148,14 +148,14 @@ const cmd: SubCommmndClient = async (interaction, client) => {
await i.reply({
content: "Page " + page,
ephemeral: true
flags: MessageFlags.Ephemeral
})
}
if (i.customId === nextId) {
if (page === maxPage) {
await i.reply({
content: "You are already at the last page",
ephemeral: true
flags: MessageFlags.Ephemeral
})
return
}
@@ -177,7 +177,7 @@ const cmd: SubCommmndClient = async (interaction, client) => {
await i.reply({
content: "Page " + page,
ephemeral: true
flags: MessageFlags.Ephemeral
})
}
})