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, 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)