Updated ephemreal deprecation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js"
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
||||
import { addGuildApp, getGuildApp } from "src/drizzle/functions.js"
|
||||
import { ignM, largeM, smallM } from "~/config/limitmessages.js"
|
||||
import { applicationsChannel, embedColor } from "~/config/options.js"
|
||||
@@ -12,7 +12,7 @@ export default {
|
||||
description: "Guild application button.",
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
await interaction.deferReply({ flags: MessageFlags.Ephemeral })
|
||||
const user = interaction.member as GuildMember
|
||||
const guild = interaction.guild!
|
||||
const userRoles = user.roles.cache.map(role => role.id)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js"
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
||||
import { ignM, largeM, smallM } from "~/config/limitmessages.js"
|
||||
import { embedColor, inactivityLogChannel } from "~/config/options.js"
|
||||
import { inactivity } from "~/config/questions.js"
|
||||
@@ -19,7 +19,7 @@ export default {
|
||||
if (!userRoles.some(role => guildRoles.includes(role.id))) {
|
||||
await interaction.reply({
|
||||
content: "Only guild members can use this button.",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
return
|
||||
}
|
||||
@@ -48,14 +48,14 @@ export default {
|
||||
} catch (error) {
|
||||
await interaction.reply({
|
||||
content: "Please enable your DMs.",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
await interaction.reply({
|
||||
content: "Please check your DMs.",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
|
||||
const input = await user.dmChannel!.awaitMessages({
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { MessageFlags } from "discord.js"
|
||||
import { IButton } from "~/typings"
|
||||
|
||||
export default {
|
||||
@@ -7,7 +8,7 @@ export default {
|
||||
async execute({ interaction }) {
|
||||
await interaction.reply({
|
||||
content: "This button is currently disabled.",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
}
|
||||
} as IButton
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { MessageFlags } from "discord.js"
|
||||
import { IButton } from "~/typings"
|
||||
|
||||
export default {
|
||||
@@ -7,7 +8,7 @@ export default {
|
||||
async execute({ interaction }) {
|
||||
await interaction.reply({
|
||||
content: "This button is currently disabled.",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
}
|
||||
} as IButton
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js"
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
||||
import { addStaffApp, getSetting, getStaffApp } from "src/drizzle/functions.js"
|
||||
import { ignM, largeM } from "~/config/limitmessages.js"
|
||||
import { embedColor, staffApplicationsChannel } from "~/config/options.js"
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
}
|
||||
|
||||
if (interaction.customId === "staffapply") {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
await interaction.deferReply({ flags: MessageFlags.Ephemeral })
|
||||
|
||||
if (user.user.id !== env.prod.dev) {
|
||||
if (status === "0") {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { MessageFlags } from "discord.js"
|
||||
import { getWaitingLists, removeWaitingList } from "src/drizzle/functions.js"
|
||||
import { hypixelGuildID } from "~/config/options.js"
|
||||
import { IButton } from "~/typings"
|
||||
@@ -8,7 +9,7 @@ export default {
|
||||
description: "Update the waiting list.",
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
await interaction.deferReply({ flags: MessageFlags.Ephemeral })
|
||||
|
||||
const user = interaction.user
|
||||
const message = interaction.message
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { GuildMember } from "discord.js"
|
||||
import { GuildMember, MessageFlags } from "discord.js"
|
||||
import { addVerify, getVerify } from "src/drizzle/functions.js"
|
||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { IModal } from "~/typings"
|
||||
@@ -11,7 +11,7 @@ export default {
|
||||
description: "Verify box.",
|
||||
|
||||
async execute({ interaction }) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
await interaction.deferReply({ flags: MessageFlags.Ephemeral })
|
||||
|
||||
const user = interaction.member as GuildMember
|
||||
const ign = interaction.fields.fields.get("verifyign")!.value
|
||||
|
||||
Reference in New Issue
Block a user