mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 12:23:09 +02:00
refactor: improve code readability
This commit is contained in:
parent
d4d60123cb
commit
9363c74ae3
@ -12,16 +12,16 @@ module.exports = class MessageReactionAddEventListener extends EventListener {
|
||||
if (reaction.partial) {
|
||||
try {
|
||||
await reaction.fetch();
|
||||
} catch (err) {
|
||||
return this.client.log.error(err);
|
||||
} catch (error) {
|
||||
return this.client.log.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
if (user.partial) {
|
||||
try {
|
||||
await user.fetch();
|
||||
} catch (err) {
|
||||
return this.client.log.error(err);
|
||||
} catch (error) {
|
||||
return this.client.log.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -12,16 +12,16 @@ module.exports = class MessageReactionRemoveEventListener extends EventListener
|
||||
if (reaction.partial) {
|
||||
try {
|
||||
await reaction.fetch();
|
||||
} catch (err) {
|
||||
return this.client.log.error(err);
|
||||
} catch (error) {
|
||||
return this.client.log.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
if (user.partial) {
|
||||
try {
|
||||
await user.fetch();
|
||||
} catch (err) {
|
||||
return this.client.log.error(err);
|
||||
} catch (error) {
|
||||
return this.client.log.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,8 +9,8 @@ module.exports = class MessageUpdateEventListener extends EventListener {
|
||||
if (newm.partial) {
|
||||
try {
|
||||
await newm.fetch();
|
||||
} catch (err) {
|
||||
return this.client.log.error(err);
|
||||
} catch (error) {
|
||||
return this.client.log.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user