Skip to content

Commit

Permalink
replaced super outdated warning message
Browse files Browse the repository at this point in the history
why was this called auto reaction failed
  • Loading branch information
3vorp committed Nov 14, 2023
1 parent 9920379 commit 9f46d74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
const submissionChannels = Object.values(settings.submission.packs).map(
(pack) => pack.channels.submit,
);

if (submissionChannels.includes(message.channel.id)) return submitTexture(message);

/**
Expand Down
6 changes: 3 additions & 3 deletions functions/submission/utility/cancelSubmission.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const DEBUG = process.env.DEBUG.toLowerCase() == "true";
* Logic for handling an invalid submission
* @author Juknum
* @param {import("discord.js").Message} message message to check permissions of
* @param {string} error optional error message
* @param {string} [error] error message
*/
module.exports = async function cancelSubmission(message, error = "No error given!") {
// allow managers and council to talk in submit channels
Expand All @@ -26,11 +26,11 @@ module.exports = async function cancelSubmission(message, error = "No error give

const embed = new EmbedBuilder()
.setColor(settings.colors.red)
.setTitle(strings.submission.autoreact.error_title)
.setTitle(strings.submission.cancelled.error_title)
.setThumbnail(settings.images.warning)
.setDescription(error)
.setFooter({
text: strings.submission.autoreact.error_footer,
text: strings.submission.cancelled.error_footer,
iconURL: message.client.user.displayAvatarURL(),
});

Expand Down
4 changes: 2 additions & 2 deletions resources/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
}
},
"submission": {
"autoreact": {
"error_title": "Auto Reaction Failed",
"cancelled": {
"error_title": "Submission Cancelled",
"error_footer": "This message will self-destruct in 30 seconds, please re-submit!"
},
"choice_embed": {
Expand Down

0 comments on commit 9f46d74

Please sign in to comment.