const { SlashCommandBuilder } = require("discord.js"); module.exports = { data: new SlashCommandBuilder() .setName("개발자") .setDescription("디서콜 봇 소유자 확인"), /** * * @param {import("discord.js").ChatInputCommandInteraction} interaction */ async execute(interaction) { await interaction.client.application.fetch(); const owner = interaction.client.application.owner; if (owner) { if (owner.members) { await interaction.editReply( `디서콜 봇 개발자 인증 : [${Array.from(owner.members.values()).map( (f) => `"${f.user.id}"` )}]` ); } else { await interaction.editReply(`디서콜 봇 개발자 인증 : ["${owner.id}"]`); } } }, };