From ed9b50c36db57a19c7bc12f5af4031f659e6abc8 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 11 Jun 2022 17:22:51 -0400 Subject: [PATCH] Move to ephemeral --- slash-commands/joints.js | 2 +- slash-commands/pastas.js | 4 ++-- slash-commands/ping.js | 2 +- slash-commands/reload.js | 2 +- slash-commands/savejoint.js | 2 +- slash-commands/savepasta.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/slash-commands/joints.js b/slash-commands/joints.js index 98d5d2f..2ca5b6c 100644 --- a/slash-commands/joints.js +++ b/slash-commands/joints.js @@ -10,6 +10,6 @@ module.exports = { interaction.client.joints.map(e => { joints.push(e.content); }); - interaction.reply('Here are all the `.joint` phrases I have saved:\n\n' + joints.join('\n')); + interaction.reply({ content: 'Here are all the `.joint` phrases I have saved:\n\n' + joints.join('\n'), ephemeral: true }); }, }; \ No newline at end of file diff --git a/slash-commands/pastas.js b/slash-commands/pastas.js index 2736df1..3a89738 100644 --- a/slash-commands/pastas.js +++ b/slash-commands/pastas.js @@ -8,7 +8,7 @@ module.exports = { .setDescription('Get a list of currently saved copypastas.'), async execute(interaction) { if (!interaction.client.pastas) { - interaction.reply('For some reason I don\'t have access to the collection of copypastas. Sorry about that!'); + interaction.reply({ content: 'For some reason I don\'t have access to the collection of copypastas. Sorry about that!', ephemeral: true }); return; } const commandData = { @@ -28,6 +28,6 @@ module.exports = { name: row.name, }); } - interaction.reply(fn.embeds.pastas(commandData)); + interaction.reply({ content: fn.embeds.pastas(commandData), ephemeral: true }); }, }; \ No newline at end of file diff --git a/slash-commands/ping.js b/slash-commands/ping.js index 3bb70f1..b3ba2c6 100644 --- a/slash-commands/ping.js +++ b/slash-commands/ping.js @@ -6,6 +6,6 @@ module.exports = { .setName('ping') .setDescription('Check that the bot is alive and responding.'), async execute(interaction) { - await interaction.reply('Pong!'); + await interaction.reply({ content: 'Pong!', ephemeral: true }); }, }; \ No newline at end of file diff --git a/slash-commands/reload.js b/slash-commands/reload.js index 1b9c3f3..c6543c0 100644 --- a/slash-commands/reload.js +++ b/slash-commands/reload.js @@ -15,6 +15,6 @@ module.exports = { fn.download.joints(client); fn.download.requests(client); fn.download.strains(client); - interaction.reply('Reloaded!'); + interaction.reply({ content: 'Reloaded!', ephemeral: true }); }, }; \ No newline at end of file diff --git a/slash-commands/savejoint.js b/slash-commands/savejoint.js index 43e0f67..ba48eac 100644 --- a/slash-commands/savejoint.js +++ b/slash-commands/savejoint.js @@ -12,6 +12,6 @@ module.exports = { .setRequired(true)), async execute(interaction) { fn.upload.joint(interaction.options.getString('joint-content'), interaction.client); - interaction.reply(`The joint has been rolled${emoji.joint}`); + interaction.reply({ content: `The joint has been rolled${emoji.joint}`, ephemeral: true }); }, }; \ No newline at end of file diff --git a/slash-commands/savepasta.js b/slash-commands/savepasta.js index 4776561..a89da4a 100644 --- a/slash-commands/savepasta.js +++ b/slash-commands/savepasta.js @@ -19,6 +19,6 @@ module.exports = { content: interaction.options.getString('pasta-content'), }; fn.upload.pasta(pastaData, interaction.client); - interaction.reply(`The copypasta has been saved as ${pastaData.name}.pasta`); + interaction.reply({content: `The copypasta has been saved as ${pastaData.name}.pasta`, ephemeral: true }); }, }; \ No newline at end of file