mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +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 ChannelDeleteAction extends Action {
|
||||
constructor(client) {
|
||||
@@ -13,7 +13,7 @@ class ChannelDeleteAction extends Action {
|
||||
|
||||
if (channel) {
|
||||
client.channels.remove(channel.id);
|
||||
client.emit(Constants.Events.CHANNEL_DELETE, channel);
|
||||
client.emit(Events.CHANNEL_DELETE, channel);
|
||||
}
|
||||
|
||||
return { channel };
|
||||
|
||||
Reference in New Issue
Block a user