Table of Contents

Interface IGuildChannel

Namespace
NetCord
Assembly
NetCord.dll
public interface IGuildChannel : INamedChannel, IEntity, ISpanFormattable, IFormattable
Inherited Members

Properties

GuildId

ulong GuildId { get; }

Property Value

ulong

PermissionOverwrites

IReadOnlyDictionary<ulong, PermissionOverwrite> PermissionOverwrites { get; }

Property Value

IReadOnlyDictionary<ulong, PermissionOverwrite>

Position

int? Position { get; }

Property Value

int?

Methods

CreateFromJson(JsonChannel, ulong, RestClient)

public static IGuildChannel CreateFromJson(JsonChannel jsonChannel, ulong guildId, RestClient client)

Parameters

jsonChannel JsonChannel
guildId ulong
client RestClient

Returns

IGuildChannel

CreateInviteAsync(InviteProperties?, RestRequestProperties?, CancellationToken)

Task<RestInvite> CreateInviteAsync(InviteProperties? inviteProperties = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

inviteProperties InviteProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestInvite>

DeletePermissionAsync(ulong, RestRequestProperties?, CancellationToken)

Task DeletePermissionAsync(ulong overwriteId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

overwriteId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetInvitesAsync(RestRequestProperties?, CancellationToken)

Task<IEnumerable<RestInvite>> GetInvitesAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IEnumerable<RestInvite>>

ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)

Task<IGuildChannel> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<GuildChannelOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IGuildChannel>

ModifyPermissionsAsync(PermissionOverwriteProperties, RestRequestProperties?, CancellationToken)

Task ModifyPermissionsAsync(PermissionOverwriteProperties permissionOverwrite, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

permissionOverwrite PermissionOverwriteProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task