Class GuildScheduledEvent
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class GuildScheduledEvent : ClientEntity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonGuildScheduledEvent>
- Inheritance
-
GuildScheduledEvent
- Implements
- Inherited Members
Constructors
GuildScheduledEvent(JsonGuildScheduledEvent, RestClient)
public GuildScheduledEvent(JsonGuildScheduledEvent jsonModel, RestClient client)
Parameters
jsonModel
JsonGuildScheduledEventclient
RestClient
Properties
ChannelId
public ulong? ChannelId { get; }
Property Value
CoverImageHash
public string? CoverImageHash { get; }
Property Value
Creator
public User? Creator { get; }
Property Value
CreatorId
public ulong? CreatorId { get; }
Property Value
Description
public string? Description { get; }
Property Value
EntityId
public ulong? EntityId { get; }
Property Value
EntityType
public GuildScheduledEventEntityType EntityType { get; }
Property Value
GuildId
public ulong GuildId { get; }
Property Value
HasCoverImage
public bool HasCoverImage { get; }
Property Value
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
Location
public string? Location { get; }
Property Value
Name
public string Name { get; }
Property Value
PrivacyLevel
public GuildScheduledEventPrivacyLevel PrivacyLevel { get; }
Property Value
RecurrenceRule
public GuildScheduledEventRecurrenceRule? RecurrenceRule { get; }
Property Value
ScheduledEndTime
public DateTimeOffset? ScheduledEndTime { get; }
Property Value
ScheduledStartTime
public DateTimeOffset ScheduledStartTime { get; }
Property Value
Status
public GuildScheduledEventStatus Status { get; }
Property Value
UserCount
public int? UserCount { get; }
Property Value
- int?
Methods
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAsync(bool, RestRequestProperties?, CancellationToken)
public Task<GuildScheduledEvent> GetAsync(bool withUserCount = false, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
withUserCount
boolproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCoverImageUrl(ImageFormat)
public ImageUrl? GetCoverImageUrl(ImageFormat format)
Parameters
format
ImageFormat
Returns
GetUsersAsync(OptionalGuildUsersPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<GuildScheduledEventUser> GetUsersAsync(OptionalGuildUsersPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
paginationProperties
OptionalGuildUsersPaginationPropertiesproperties
RestRequestProperties
Returns
ModifyAsync(Action<GuildScheduledEventOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildScheduledEvent> ModifyAsync(Action<GuildScheduledEventOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GuildScheduledEventOptions>properties
RestRequestPropertiescancellationToken
CancellationToken