Beispiel #1
0
        public static Task RenameSuggestionChannel(this SocketGuildChannel channel, string name)
        {
            var type   = channel.GetSuggestionChannelType();
            var suffix = ChannelSuffixes[type];

            return(channel.ModifyAsync(c =>
            {
                c.Name = suffix + name;
            }));
        }