Class VoiceGuildChannel
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class VoiceGuildChannel : TextChannel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IVoiceGuildChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
- Inheritance
-
VoiceGuildChannel
- Implements
-
- Inherited Members
-
Constructors
VoiceGuildChannel(JsonChannel, ulong, RestClient)
public VoiceGuildChannel(JsonChannel jsonModel, ulong guildId, RestClient client)
Parameters
jsonModel
JsonChannel
guildId
ulong
client
RestClient
Properties
Bitrate
public int Bitrate { get; }
Property Value
- int
GuildId
public ulong GuildId { get; }
Property Value
- ulong
Name
public string Name { get; }
Property Value
- string
Nsfw
public bool Nsfw { get; }
Property Value
- bool
ParentId
public ulong? ParentId { get; }
Property Value
- ulong?
PermissionOverwrites
public IReadOnlyDictionary<ulong, PermissionOverwrite> PermissionOverwrites { get; }
Property Value
- IReadOnlyDictionary<ulong, PermissionOverwrite>
Position
public int? Position { get; }
Property Value
- int?
RtcRegion
public string? RtcRegion { get; }
Property Value
- string
Slowmode
public int Slowmode { get; }
Property Value
- int
UserLimit
public int UserLimit { get; }
Property Value
- int
VideoQualityMode
public VideoQualityMode VideoQualityMode { get; }
Property Value
- VideoQualityMode
Methods
CreateInviteAsync(InviteProperties?, RestRequestProperties?, CancellationToken)
public Task<RestInvite> CreateInviteAsync(InviteProperties? inviteProperties = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
inviteProperties
InviteProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<RestInvite>
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<VoiceGuildChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<VoiceGuildChannel>
DeletePermissionAsync(ulong, RestRequestProperties?, CancellationToken)
public Task DeletePermissionAsync(ulong overwriteId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
overwriteId
ulong
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task
GetAsync(RestRequestProperties?, CancellationToken)
public Task<VoiceGuildChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<VoiceGuildChannel>
GetInvitesAsync(RestRequestProperties?, CancellationToken)
public Task<IEnumerable<RestInvite>> GetInvitesAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<IEnumerable<RestInvite>>
ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)
public Task<VoiceGuildChannel> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GuildChannelOptions>
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<VoiceGuildChannel>
ModifyPermissionsAsync(PermissionOverwriteProperties, RestRequestProperties?, CancellationToken)
public Task ModifyPermissionsAsync(PermissionOverwriteProperties permissionOverwrite, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
permissionOverwrite
PermissionOverwriteProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task