fix: displayed result of the command in public

This commit is contained in:
Nemo 2021-11-14 11:45:40 +01:00
parent 831f8be7c9
commit c2fdd44901
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,6 @@ module.exports = {
.setName('server')
.setDescription('Replies with Server info!'),
async execute(interaction) {
await interaction.reply(`Server name: ${interaction.guild.name}\nTotal members: ${interaction.guild.memberCount}`);
await interaction.reply({content:`Server name: ${interaction.guild.name}\nTotal members: ${interaction.guild.memberCount}` , ephemeral:true});
},
};

View File

@ -5,6 +5,6 @@ module.exports = {
.setName('user')
.setDescription('Replies with User info!'),
async execute(interaction) {
await interaction.reply(`Your tag: ${interaction.user.tag}\nYour id: ${interaction.user.id}`);
await interaction.reply({content: 'Your tag: ${interaction.user.tag}\nYour id: ${interaction.user.id}', ephemeral:true});
},
};