From dc8f7e1fcff84e8b5be3f8b850a2af99a06ec1a8 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Fri, 28 Apr 2023 22:40:36 +0900 Subject: [PATCH] remove trashes --- src/command/commands/dm.trash | 17 ----------------- src/command/commands/user.trash | 15 --------------- 2 files changed, 32 deletions(-) delete mode 100755 src/command/commands/dm.trash delete mode 100755 src/command/commands/user.trash diff --git a/src/command/commands/dm.trash b/src/command/commands/dm.trash deleted file mode 100755 index bacb900..0000000 --- a/src/command/commands/dm.trash +++ /dev/null @@ -1,17 +0,0 @@ -const { SlashCommandBuilder, Client, GatewayIntentBits } = require("discord.js"); -const client = new Client({ intents: [GatewayIntentBits.Guilds] }); -client.login(process.env.DISCORD_TOKEN); - -module.exports = { - data: new SlashCommandBuilder().setName("test").setDescription("test of dm").setDMPermission(false), - async execute(interaction) { - await interaction.deferReply({ ephemeral: true }); - await interaction.editReply("DM으로 확인하세요"); - - // client.users.fetch(interaction.member.user.id, false).then((user) => { - // user.send("hello world"); - // }); - const user = await client.users.fetch(interaction.member.user.id, false); - user.send("hello world"); - }, -}; diff --git a/src/command/commands/user.trash b/src/command/commands/user.trash deleted file mode 100755 index 77db442..0000000 --- a/src/command/commands/user.trash +++ /dev/null @@ -1,15 +0,0 @@ -const { SlashCommandBuilder, Client, GatewayIntentBits } = require("discord.js"); -const client = new Client({ intents: [GatewayIntentBits.Guilds] }); -client.login(process.env.DISCORD_TOKEN); - -module.exports = { - data: new SlashCommandBuilder() - .setName("test") - .setDescription("켈켈켈") - .addUserOption((option) => option.setName("user").setDescription("description...").setRequired(true)) - .setDMPermission(false), - async execute(interaction) { - await interaction.deferReply({ ephemeral: true }); - await interaction.editReply(`${interaction.options.getUser("user").id}`); - }, -};