Updated ephemreal deprecation
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user