Skip to content

Commit

Permalink
stupider
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Jul 12, 2023
1 parent d8e6d33 commit f556018
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions functions/submission/submitTexture.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ async function invalidSubmission(message, error = "Not given") {
// allow managers and council to talk in submit channels
if (
(message.member.permissions.has(Permissions.FLAGS.ADMINISTRATOR) ||
message.member.roles.cache.some((role) => role.name.toLowerCase().includes("council"))) &&
error == strings.submission.image_not_attached
message.member.roles.cache.some((role) => role.name.toLowerCase().includes("council")))
)
return;

Expand All @@ -168,7 +167,7 @@ async function invalidSubmission(message, error = "Not given") {
try {
const msg = await message.channel.send({ embeds: [embed] });
if (msg.deletable) setTimeout(() => msg.delete(), 30000);
if (message.deletable && error == strings.submission.image_not_attached) setTimeout(() => message.delete(), 30010);
if (message.deletable) setTimeout(() => message.delete(), 30010);
} catch (error) {
console.error(error);
}
Expand Down

0 comments on commit f556018

Please sign in to comment.