diff --git a/src/commands/ban.js b/src/commands/ban.js index c558f90..4c59967 100644 --- a/src/commands/ban.js +++ b/src/commands/ban.js @@ -10,7 +10,7 @@ module.exports = { const user = interaction.options.getUser('member'); const member = await interaction.guild.members.fetch(user.id); if (!member) return interaction.reply({ embeds: [new EmbedBuilder().addFields({ name: 'Error', value: 'サーバー内に存在しないメンバーです。' }).setFooter({ text: 'CH Protect 0.0.1', iconURL: interaction.client.user.displayAvatarURL() }).setColor('#ff0000')], ephemeral: true }); - member.timeout(time) + member.ban() .then(() => { interaction.reply({ embeds: [new EmbedBuilder().addFields({ name: 'Done.', value: '指定したメンバーをBANしました。' }).setFooter({ text: 'CH Protect 0.0.1', iconURL: interaction.client.user.displayAvatarURL() }).setColor('#3CB371')], ephemeral: true }); }) diff --git a/src/commands/context_kick.js b/src/commands/context_kick.js index 25ebe1d..63626eb 100644 --- a/src/commands/context_kick.js +++ b/src/commands/context_kick.js @@ -7,7 +7,7 @@ module.exports = { async execute(interaction) { const member = await interaction.guild.members.fetch(interaction.targetUser.id) if (!member) return interaction.reply({ embeds: [new EmbedBuilder().addFields({ name: 'Error', value: 'サーバー内に存在しないメンバーです。' }).setColor('#ff0000').setFooter({ text: 'CH Protect 0.0.1', iconURL: interaction.client.user.displayAvatarURL() })] }); - member.ban() + member.kick() .then(() => { interaction.reply({ embeds: [new EmbedBuilder().addFields({ name: 'Done.', value: '指定したメンバーを追放しました。' }).setFooter({ text: 'CH Protect 0.0.1', iconURL: interaction.client.user.displayAvatarURL() }).setColor('#3CB371')], ephemeral: true }); }) diff --git a/src/commands/kick.js b/src/commands/kick.js index 7b7e5f1..8c94943 100644 --- a/src/commands/kick.js +++ b/src/commands/kick.js @@ -10,7 +10,7 @@ module.exports = { const user = interaction.options.getUser('member'); const member = await interaction.guild.members.fetch(user.id); if (!member) return interaction.reply({ embeds: [new EmbedBuilder().addFields({ name: 'Error', value: '存在しないメンバーです。' }).setFooter({ text: 'CH Protect 0.0.1', iconURL: interaction.client.user.displayAvatarURL() }).setColor('#ff0000')], ephemeral: true }); - member.timeout(time) + member.kick() .then(() => { interaction.reply({ embeds: [new EmbedBuilder().addFields({ name: 'Done.', value: '指定したユーザーを追放しました。' }).setFooter({ text: 'CH Protect 0.0.1', iconURL: interaction.client.user.displayAvatarURL() }).setColor('#3CB371')], ephemeral: true }); })