mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor: make use of destructuring for Constants (#1942)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const Action = require('./Action');
|
||||
const Constants = require('../../util/Constants');
|
||||
const { Events } = require('../../util/Constants');
|
||||
|
||||
class MessageCreateAction extends Action {
|
||||
handle(data) {
|
||||
@@ -22,7 +22,7 @@ class MessageCreateAction extends Action {
|
||||
member.lastMessage = message;
|
||||
}
|
||||
|
||||
client.emit(Constants.Events.MESSAGE_CREATE, message);
|
||||
client.emit(Events.MESSAGE_CREATE, message);
|
||||
return { message };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user