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 { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, PermissionFlagsBits, userMention } from "discord.js"
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, MessageFlags, PermissionFlagsBits, userMention } from "discord.js"
import { IContextMenu } from "~/typings"
export default {
@@ -19,7 +19,7 @@ export default {
if (!message) {
interaction.reply({
content: "That user does not exist.",
ephemeral: true
flags: MessageFlags.Ephemeral
})
return
}
@@ -36,7 +36,7 @@ export default {
await interaction.reply({
content: "Sent a congrats message",
ephemeral: true
flags: MessageFlags.Ephemeral
})
}
} as IContextMenu

View File

@@ -1,4 +1,4 @@
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, PermissionFlagsBits } from "discord.js"
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, MessageFlags, PermissionFlagsBits } from "discord.js"
import { IContextMenu } from "~/typings"
export default {
@@ -19,7 +19,7 @@ export default {
if (!target) {
interaction.reply({
content: "That user does not exist.",
ephemeral: true
flags: MessageFlags.Ephemeral
})
return
}
@@ -27,7 +27,7 @@ export default {
if (target.id === interaction.user.id) {
interaction.reply({
content: "You can't reset your own nickname.",
ephemeral: true
flags: MessageFlags.Ephemeral
})
return
}
@@ -35,7 +35,7 @@ export default {
if (!target.manageable) {
interaction.reply({
content: "I cannot reset that user's nickname.",
ephemeral: true
flags: MessageFlags.Ephemeral
})
return
}
@@ -46,7 +46,7 @@ export default {
)
interaction.reply({
content: `Reset ${target.user.username}'s nickname.`,
ephemeral: true
flags: MessageFlags.Ephemeral
})
}
} as IContextMenu

View File

@@ -1,4 +1,4 @@
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, PermissionFlagsBits, userMention } from "discord.js"
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, MessageFlags, PermissionFlagsBits, userMention } from "discord.js"
import { getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
@@ -19,7 +19,7 @@ export default {
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
async execute({ interaction }) {
await interaction.deferReply({ ephemeral: true })
await interaction.deferReply({ flags: MessageFlags.Ephemeral })
const targetId = interaction.targetId
const user = await interaction.guild!.members.fetch(targetId)