Skip to content

Commit

Permalink
added forgotten deferReply to autopost remove commands
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Mar 7, 2024
1 parent 1c7347c commit a704f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions commands/autopost/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ async function removeAutopost(autopostchannel, channelID) {
}

module.exports.run = async (interaction, autopostchannel) => {
if (!DEBUG) await interaction.deferReply({ ephemeral: true });
const channelID = interaction.options.getString('channel', true);
const removed = await removeAutopost(autopostchannel, channelID);
if (removed) {
Expand Down
1 change: 1 addition & 0 deletions commands/faautopost/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function removeAutopost(autopostfasubmission, channelID, artistID) {
}

module.exports.run = async (interaction, autopostfasubmission) => {
if (!DEBUG) await interaction.deferReply({ ephemeral: true });
const [channelID, artistID] = interaction.options.getString('channel', true).split('_');
const removed = await removeAutopost(autopostfasubmission, channelID, artistID);
if (removed) {
Expand Down

0 comments on commit a704f2f

Please sign in to comment.