Move to ephemeral

This commit is contained in:
Skylar Grant 2022-06-11 17:22:51 -04:00
parent e26c5f1a94
commit ed9b50c36d
6 changed files with 7 additions and 7 deletions

View File

@ -10,6 +10,6 @@ module.exports = {
interaction.client.joints.map(e => { interaction.client.joints.map(e => {
joints.push(e.content); 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 });
}, },
}; };

View File

@ -8,7 +8,7 @@ module.exports = {
.setDescription('Get a list of currently saved copypastas.'), .setDescription('Get a list of currently saved copypastas.'),
async execute(interaction) { async execute(interaction) {
if (!interaction.client.pastas) { 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; return;
} }
const commandData = { const commandData = {
@ -28,6 +28,6 @@ module.exports = {
name: row.name, name: row.name,
}); });
} }
interaction.reply(fn.embeds.pastas(commandData)); interaction.reply({ content: fn.embeds.pastas(commandData), ephemeral: true });
}, },
}; };

View File

@ -6,6 +6,6 @@ module.exports = {
.setName('ping') .setName('ping')
.setDescription('Check that the bot is alive and responding.'), .setDescription('Check that the bot is alive and responding.'),
async execute(interaction) { async execute(interaction) {
await interaction.reply('Pong!'); await interaction.reply({ content: 'Pong!', ephemeral: true });
}, },
}; };

View File

@ -15,6 +15,6 @@ module.exports = {
fn.download.joints(client); fn.download.joints(client);
fn.download.requests(client); fn.download.requests(client);
fn.download.strains(client); fn.download.strains(client);
interaction.reply('Reloaded!'); interaction.reply({ content: 'Reloaded!', ephemeral: true });
}, },
}; };

View File

@ -12,6 +12,6 @@ module.exports = {
.setRequired(true)), .setRequired(true)),
async execute(interaction) { async execute(interaction) {
fn.upload.joint(interaction.options.getString('joint-content'), interaction.client); 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 });
}, },
}; };

View File

@ -19,6 +19,6 @@ module.exports = {
content: interaction.options.getString('pasta-content'), content: interaction.options.getString('pasta-content'),
}; };
fn.upload.pasta(pastaData, interaction.client); 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 });
}, },
}; };