Class CategoryGuildChannel
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class CategoryGuildChannel : Channel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
- Inheritance
-
CategoryGuildChannel
- Implements
-
- Inherited Members
-
Constructors
CategoryGuildChannel(JsonChannel, ulong, RestClient)
public CategoryGuildChannel(JsonChannel jsonModel, ulong guildId, RestClient client)
Parameters
jsonModel
JsonChannel
guildId
ulong
client
RestClient
Properties
GuildId
public ulong GuildId { get; }
Property Value
- ulong
Name
public string Name { get; }
Property Value
- string
PermissionOverwrites
public IReadOnlyDictionary<ulong, PermissionOverwrite> PermissionOverwrites { get; }
Property Value
- IReadOnlyDictionary<ulong, PermissionOverwrite>
Position
public int? Position { get; }
Property Value
- int?
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<CategoryGuildChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<CategoryGuildChannel>
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<CategoryGuildChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<CategoryGuildChannel>
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<CategoryGuildChannel> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GuildChannelOptions>
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<CategoryGuildChannel>
ModifyPermissionsAsync(PermissionOverwriteProperties, RestRequestProperties?, CancellationToken)
public Task ModifyPermissionsAsync(PermissionOverwriteProperties permissionOverwrite, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
permissionOverwrite
PermissionOverwriteProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task