mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added channel.delete()
This commit is contained in:
@@ -23,7 +23,7 @@ client.on('channelCreate', channel => {
|
||||
// console.log(channel);
|
||||
});
|
||||
client.on('channelDelete', channel => {
|
||||
console.log(channel);
|
||||
console.log('channDel', channel);
|
||||
});
|
||||
|
||||
client.on('channelUpdate', (old, chan) => {
|
||||
@@ -75,6 +75,10 @@ client.on('message', message => {
|
||||
message.channel.guild.createChannel('hi', 'text').then(console.log);
|
||||
}
|
||||
}
|
||||
|
||||
if (message.content === 'delchann') {
|
||||
message.channel.delete();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user