remove trashes
This commit is contained in:
parent
7a2ecd61b6
commit
dc8f7e1fcf
|
@ -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");
|
|
||||||
},
|
|
||||||
};
|
|
|
@ -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}`);
|
|
||||||
},
|
|
||||||
};
|
|
Loading…
Reference in a new issue