@@ -94,8 +94,8 @@ namespace Discord.WebSocket
=> Channels.Select(x => x as SocketTextChannel).Where(x => x != null).ToImmutableArray();
public IReadOnlyCollection<SocketVoiceChannel> VoiceChannels
=> Channels.Select(x => x as SocketVoiceChannel).Where(x => x != null).ToImmutableArray();
public IReadOnlyCollection<SocketChannelCategory> ChannelCategorie s
=> Channels.Select(x => x as SocketChannelC ategory).Where(x => x != null).ToImmutableArray();
public IReadOnlyCollection<SocketCategoryChannel> CategoryChannel s
=> Channels.Select(x => x as SocketCategoryChannel ).Where(x => x != null).ToImmutableArray();
public SocketGuildUser CurrentUser => _members.TryGetValue(Discord.CurrentUser.Id, out SocketGuildUser member) ? member : null;
public SocketRole EveryoneRole => GetRole(Id);
public IReadOnlyCollection<SocketGuildChannel> Channels
@@ -318,8 +318,8 @@ namespace Discord.WebSocket
=> GuildHelper.CreateTextChannelAsync(this, Discord, name, options);
public Task<RestVoiceChannel> CreateVoiceChannelAsync(string name, RequestOptions options = null)
=> GuildHelper.CreateVoiceChannelAsync(this, Discord, name, options);
public Task<RestChannelC ategory> CreateChannelC ategoryAsync(string name, RequestOptions options = null)
=> GuildHelper.CreateChannelC ategoryAsync(this, Discord, name, options);
public Task<RestCategoryChannel > CreateCategoryChannel Async(string name, RequestOptions options = null)
=> GuildHelper.CreateCategoryChannel Async(this, Discord, name, options);
internal SocketGuildChannel AddChannel(ClientState state, ChannelModel model)
{
@@ -639,8 +639,8 @@ namespace Discord.WebSocket
=> Task.FromResult<ITextChannel>(GetTextChannel(id));
Task<IReadOnlyCollection<IVoiceChannel>> IGuild.GetVoiceChannelsAsync(CacheMode mode, RequestOptions options)
=> Task.FromResult<IReadOnlyCollection<IVoiceChannel>>(VoiceChannels);
Task<IReadOnlyCollection<IChannelCategory>> IGuild.GetChannelCategorie sAsync(CacheMode mode , RequestOptions options)
=> Task.FromResult<IReadOnlyCollection<IChannelCategory>>(ChannelCategorie s);
Task<IReadOnlyCollection<ICategoryChannel>> IGuild.GetCategoryChannel sAsync(CacheMode mode , RequestOptions options)
=> Task.FromResult<IReadOnlyCollection<ICategoryChannel>>(CategoryChannel s);
Task<IVoiceChannel> IGuild.GetVoiceChannelAsync(ulong id, CacheMode mode, RequestOptions options)
=> Task.FromResult<IVoiceChannel>(GetVoiceChannel(id));
Task<IVoiceChannel> IGuild.GetAFKChannelAsync(CacheMode mode, RequestOptions options)
@@ -655,8 +655,8 @@ namespace Discord.WebSocket
=> await CreateTextChannelAsync(name, options).ConfigureAwait(false);
async Task<IVoiceChannel> IGuild.CreateVoiceChannelAsync(string name, RequestOptions options)
=> await CreateVoiceChannelAsync(name, options).ConfigureAwait(false);
async Task<IChannelC ategory> IGuild.CreateChannelC ategoryAsync(string name, RequestOptions options)
=> await CreateChannelC ategoryAsync(name, options).ConfigureAwait(false);
async Task<ICategoryChannel > IGuild.CreateCategoryChannel Async(string name, RequestOptions options)
=> await CreateCategoryChannel Async(name, options).ConfigureAwait(false);
async Task<IReadOnlyCollection<IGuildIntegration>> IGuild.GetIntegrationsAsync(RequestOptions options)
=> await GetIntegrationsAsync(options).ConfigureAwait(false);