Class GuildTemplate
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class GuildTemplate : IJsonModel<JsonGuildTemplate>
- Inheritance
-
GuildTemplate
- Implements
-
- Inherited Members
-
Constructors
GuildTemplate(JsonGuildTemplate, RestClient)
public GuildTemplate(JsonGuildTemplate jsonModel, RestClient client)
Parameters
jsonModel
JsonGuildTemplate
client
RestClient
Properties
Code
public string Code { get; }
Property Value
- string
CreatedAt
public DateTimeOffset CreatedAt { get; }
Property Value
- DateTimeOffset
Creator
public User Creator { get; }
Property Value
- User
CreatorId
public ulong CreatorId { get; }
Property Value
- ulong
Description
public string Description { get; }
Property Value
- string
IsDirty
public bool? IsDirty { get; }
Property Value
- bool?
Name
public string Name { get; }
Property Value
- string
Preview
public GuildTemplatePreview Preview { get; }
Property Value
- GuildTemplatePreview
SourceGuildId
public ulong SourceGuildId { get; }
Property Value
- ulong
UpdatedAt
public DateTimeOffset UpdatedAt { get; }
Property Value
- DateTimeOffset
UsageCount
public int UsageCount { get; }
Property Value
- int
Methods
CreateGuildAsync(GuildFromGuildTemplateProperties, RestRequestProperties?, CancellationToken)
public Task<RestGuild> CreateGuildAsync(GuildFromGuildTemplateProperties guildProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildProperties
GuildFromGuildTemplateProperties
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<RestGuild>
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildTemplate>
GetAsync(RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildTemplate>
ModifyAsync(Action<GuildTemplateOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> ModifyAsync(Action<GuildTemplateOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GuildTemplateOptions>
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildTemplate>
SyncAsync(RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> SyncAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildTemplate>