1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-02 20:02:53 +00:00

API: Update the Client.CreateChannel docs to mention the recent permission change

This commit is contained in:
Maximilian von Lindern 2021-05-29 19:47:50 +02:00 committed by diamondburned
parent 56aaed3d60
commit 7785887719

View file

@ -65,7 +65,11 @@ type CreateChannelData struct {
// CreateChannel creates a new channel object for the guild. // CreateChannel creates a new channel object for the guild.
// //
// Requires the MANAGE_CHANNELS permission. // Requires the MANAGE_CHANNELS permission. If setting permission overwrites,
// only permissions your bot has in the guild can be allowed/denied. Setting
// MANAGE_ROLES permission in channels is only possible for guild
// administrators. Returns the new channel object on success.
//
// Fires a ChannelCreate Gateway event. // Fires a ChannelCreate Gateway event.
func (c *Client) CreateChannel( func (c *Client) CreateChannel(
guildID discord.GuildID, data CreateChannelData) (*discord.Channel, error) { guildID discord.GuildID, data CreateChannelData) (*discord.Channel, error) {