mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
docs: move event docstrings to the emitting line of code
This commit is contained in:
@@ -14,6 +14,11 @@ class ChannelDeleteAction extends Action {
|
||||
if (channel) {
|
||||
client.channels.remove(channel.id);
|
||||
channel.deleted = true;
|
||||
/**
|
||||
* Emitted whenever a channel is deleted.
|
||||
* @event Client#channelDelete
|
||||
* @param {DMChannel|GroupDMChannel|GuildChannel} channel The channel that was deleted
|
||||
*/
|
||||
client.emit(Events.CHANNEL_DELETE, channel);
|
||||
}
|
||||
|
||||
@@ -21,10 +26,4 @@ class ChannelDeleteAction extends Action {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Emitted whenever a channel is deleted.
|
||||
* @event Client#channelDelete
|
||||
* @param {GroupDMChannel|GuildChannel} channel The channel that was deleted
|
||||
*/
|
||||
|
||||
module.exports = ChannelDeleteAction;
|
||||
|
||||
Reference in New Issue
Block a user