예제 #1
0
        public async Task <IDiscordChannel> GetChannelAsync(ulong id)
        {
            var packet = await _apiClient.GetChannelAsync(id);

            if (packet.GuildId != 0)
            {
                return(new DiscordGuildChannel(packet, this));
            }
            return(new DiscordChannel(packet, this));
        }