mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
channel stuff (#1775)
* channel stuff * abstract channel creation * Update Channel.js * Update Channel.js * Update Channel.js * Update Guild.js * Update Constants.js * e
This commit is contained in:
@@ -960,7 +960,9 @@ class Guild {
|
||||
|
||||
return this.client.api.guilds(this.id).channels.post({
|
||||
data: {
|
||||
name, type, permission_overwrites: overwrites,
|
||||
name,
|
||||
type: Constants.ChannelTypes[type.toUpperCase()],
|
||||
permission_overwrites: overwrites,
|
||||
},
|
||||
reason,
|
||||
}).then(data => this.client.actions.ChannelCreate.handle(data).channel);
|
||||
|
||||
Reference in New Issue
Block a user