From 77858877193cf4dde8e2eb9639c066189ff08bb6 Mon Sep 17 00:00:00 2001 From: Maximilian von Lindern Date: Sat, 29 May 2021 19:47:50 +0200 Subject: [PATCH] API: Update the Client.CreateChannel docs to mention the recent permission change --- api/channel.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/channel.go b/api/channel.go index e257973..4d2357a 100644 --- a/api/channel.go +++ b/api/channel.go @@ -65,8 +65,12 @@ type CreateChannelData struct { // CreateChannel creates a new channel object for the guild. // -// Requires the MANAGE_CHANNELS permission. -// Fires a Channel Create Gateway event. +// 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. func (c *Client) CreateChannel( guildID discord.GuildID, data CreateChannelData) (*discord.Channel, error) { var ch *discord.Channel