Skip to content

Commit

Permalink
make some messages not ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Nov 15, 2023
1 parent 6a66e2f commit e0703bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion commands/developer/backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
if (!process.env.DEVELOPERS.includes(interaction.user.id))
return await warnUser(interaction, strings.command.no_permission);

await interaction.deferReply({ ephemeral: true });
await interaction.deferReply();

const { successfulPushes, failedPushes, commit } = await saveDB(
interaction.client,
Expand Down
8 changes: 3 additions & 5 deletions commands/submission/autopush.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ module.exports = {

await interaction.reply({
embeds: [infoEmbed.setTitle("Downloading textures...")],
ephemeral: true,
});

for (const pack of packs) await downloadResults(interaction.client, pack.channels.results);

await interaction.editReply({
embeds: [infoEmbed.setTitle("Pushing textures...")],
ephemeral: true,
});

for (const pack of Object.keys(settings.submission.packs))
Expand All @@ -65,10 +64,9 @@ module.exports = {
await interaction.editReply({
embeds: [
new EmbedBuilder()
.setTitle("Successfully pushed all textures")
.setColor(settings.colors.blue),
.setTitle("Successfully pushed all textures!")
.setColor(settings.colors.green),
],
ephemeral: true,
});
},
};
4 changes: 2 additions & 2 deletions commands/submission/channelpush.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = {
? Object.values(settings.submission.packs)
: [settings.submission.packs[choice]];

await interaction.deferReply({ ephemeral: true });
await interaction.deferReply();

for (const pack of packs) {
await sendToResults(interaction.client, pack);
Expand All @@ -48,7 +48,7 @@ module.exports = {
embeds: [
new EmbedBuilder()
.setTitle("Successfully pushed all textures")
.setColor(settings.colors.blue),
.setColor(settings.colors.green),
],
});
},
Expand Down

0 comments on commit e0703bb

Please sign in to comment.