DSharpPlus/Entities/Guild/DiscordGuild.cs
/// <summary>
/// <para>Gets the default channel for this guild.</para>
/// <para>Default channel is the first channel current member can see.</para>
/// </summary>
/// <returns>This member's default guild.</returns>
/// <exception cref="Exceptions.ServerErrorException">Thrown when Discord is unable to process the request.</exception>
Gets the default channel for this guild.Default channel is the first channel current member can see.
Gets the default channel for this guild . Default channel is the first channel current member can see .
public DiscordChannel GetDefaultChannel()
        {
            if (this._channels != null)
            {
                return this._channels.Values.Where(xc => xc.Type == ChannelType.Text)
                    .OrderBy(xc => xc.Position)
                    .FirstOrDefault(xc => (xc.PermissionsFor(this.CurrentMember) & DSharpPlus.Permissions.AccessChannels) == DSharpPlus.Permissions.AccessChannels);
            }
            return null;
        }
public DiscordChannel GetDefaultChannel ( ) { if ( this . _channels != null ) { return this . _channels . Values . Where ( xc => xc . Type == ChannelType . Text ) . OrderBy ( xc => xc . Position ) . FirstOrDefault ( xc => ( xc . PermissionsFor ( this . CurrentMember ) & DSharpPlus . Permissions . AccessChannels ) == DSharpPlus . Permissions . AccessChannels ) ; } return null ; }
Gets the default channel for this guild.Default channel is the first channel current member can see.
Gets the default channel for this guild . Default channel is the first channel current member can see .
This member's default guild.
This member ' s default guild .
Thrown when Discord is unable to process the request.
Thrown when Discord is unable to process the request .