Class TextGuildChannel
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class TextGuildChannel : TextChannel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
- Inheritance
-
TextGuildChannel
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
TextGuildChannel(JsonChannel, ulong, RestClient)
public TextGuildChannel(JsonChannel jsonModel, ulong guildId, RestClient client)
Parameters
jsonModel
JsonChannel
guildId
ulong
client
RestClient
Properties
DefaultAutoArchiveDuration
public int? DefaultAutoArchiveDuration { get; }
Property Value
- int?
DefaultThreadSlowmode
public int DefaultThreadSlowmode { 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?
Slowmode
public int Slowmode { get; }
Property Value
- int
Topic
public string? Topic { get; }
Property Value
- string
Methods
CreateGuildThreadAsync(GuildThreadProperties, RestRequestProperties?, CancellationToken)
public Task<GuildThread> CreateGuildThreadAsync(GuildThreadProperties threadProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
threadProperties
GuildThreadProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildThread>
CreateGuildThreadAsync(ulong, GuildThreadFromMessageProperties, RestRequestProperties?, CancellationToken)
public Task<GuildThread> CreateGuildThreadAsync(ulong messageId, GuildThreadFromMessageProperties threadFromMessageProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
messageId
ulong
threadFromMessageProperties
GuildThreadFromMessageProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildThread>
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>
CreateWebhookAsync(WebhookProperties, RestRequestProperties?, CancellationToken)
public Task<Webhook> CreateWebhookAsync(WebhookProperties webhookProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookProperties
WebhookProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<Webhook>
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<TextGuildChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<TextGuildChannel>
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<TextGuildChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<TextGuildChannel>
GetChannelWebhooksAsync(RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Webhook>> GetChannelWebhooksAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<IReadOnlyList<Webhook>>
GetInvitesAsync(RestRequestProperties?, CancellationToken)
public Task<IEnumerable<RestInvite>> GetInvitesAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<IEnumerable<RestInvite>>
public IAsyncEnumerable<GuildThread> GetJoinedPrivateArchivedGuildThreadsAsync(PaginationProperties<ulong>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
paginationProperties
PaginationProperties<ulong>
properties
RestRequestProperties
Returns
- IAsyncEnumerable<GuildThread>
public IAsyncEnumerable<GuildThread> GetPrivateArchivedGuildThreadsAsync(PaginationProperties<DateTimeOffset>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
paginationProperties
PaginationProperties<DateTimeOffset>
properties
RestRequestProperties
Returns
- IAsyncEnumerable<GuildThread>
public IAsyncEnumerable<GuildThread> GetPublicArchivedGuildThreadsAsync(PaginationProperties<DateTimeOffset>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
paginationProperties
PaginationProperties<DateTimeOffset>
properties
RestRequestProperties
Returns
- IAsyncEnumerable<GuildThread>
ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)
public Task<TextGuildChannel> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GuildChannelOptions>
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<TextGuildChannel>
ModifyPermissionsAsync(PermissionOverwriteProperties, RestRequestProperties?, CancellationToken)
public Task ModifyPermissionsAsync(PermissionOverwriteProperties permissionOverwrite, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
permissionOverwrite
PermissionOverwriteProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task