Skip to content

Commit

Permalink
Added brackets for case
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisamiga committed Jul 11, 2023
1 parent ea8977e commit 7dcc967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions events/messageReactionAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = (client, messageReaction, user) => {
if (collectors.collector.filter(e => e.id === messageReaction.message.id).length > 0) {
if (user.bot) return;
switch (messageReaction.emoji.name) {
case "📩":
case "📩":{
let channelname = `ticket-${user.username}`
channelname = channelname.replace(/\s/g, '-').toLowerCase()
if (messageReaction.message.guild.channels.cache.find(channel => channel.name === channelname) && config.one_app) {
Expand All @@ -42,7 +42,7 @@ module.exports = (client, messageReaction, user) => {
contining(client, messageReaction.message, user)
messageReaction.users.remove(user.id)
}
}
}
}
if (collectors.tickets.filter(e => e.id === messageReaction.message.id).length > 0) {
Expand Down

0 comments on commit 7dcc967

Please sign in to comment.