Class GuildScheduledEventProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class GuildScheduledEventProperties
- Inheritance
-
GuildScheduledEventProperties
- Inherited Members
-
Constructors
GuildScheduledEventProperties(string, GuildScheduledEventPrivacyLevel, DateTimeOffset, GuildScheduledEventEntityType)
public GuildScheduledEventProperties(string name, GuildScheduledEventPrivacyLevel privacyLevel, DateTimeOffset scheduledStartTime, GuildScheduledEventEntityType entityType)
Parameters
name
string
privacyLevel
GuildScheduledEventPrivacyLevel
scheduledStartTime
DateTimeOffset
entityType
GuildScheduledEventEntityType
Properties
ChannelId
[JsonPropertyName("channel_id")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ulong? ChannelId { get; set; }
Property Value
- ulong?
Description
[JsonPropertyName("description")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Description { get; set; }
Property Value
- string
EntityType
[JsonPropertyName("entity_type")]
public GuildScheduledEventEntityType EntityType { get; set; }
Property Value
- GuildScheduledEventEntityType
Image
[JsonPropertyName("image")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ImageProperties? Image { get; set; }
Property Value
- ImageProperties?
[JsonPropertyName("entity_metadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GuildScheduledEventMetadataProperties? Metadata { get; set; }
Property Value
- GuildScheduledEventMetadataProperties
Name
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
- string
PrivacyLevel
[JsonPropertyName("privacy_level")]
public GuildScheduledEventPrivacyLevel PrivacyLevel { get; set; }
Property Value
- GuildScheduledEventPrivacyLevel
ScheduledEndTime
[JsonPropertyName("scheduled_end_time")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTimeOffset? ScheduledEndTime { get; set; }
Property Value
- DateTimeOffset?
ScheduledStartTime
[JsonPropertyName("scheduled_start_time")]
public DateTimeOffset ScheduledStartTime { get; set; }
Property Value
- DateTimeOffset
Methods
WithChannelId(ulong?)
public GuildScheduledEventProperties WithChannelId(ulong? channelId)
Parameters
channelId
ulong?
Returns
- GuildScheduledEventProperties
WithDescription(string?)
public GuildScheduledEventProperties WithDescription(string? description)
Parameters
description
string
Returns
- GuildScheduledEventProperties
WithEntityType(GuildScheduledEventEntityType)
public GuildScheduledEventProperties WithEntityType(GuildScheduledEventEntityType entityType)
Parameters
entityType
GuildScheduledEventEntityType
Returns
- GuildScheduledEventProperties
WithImage(ImageProperties?)
public GuildScheduledEventProperties WithImage(ImageProperties? image)
Parameters
image
ImageProperties?
Returns
- GuildScheduledEventProperties
public GuildScheduledEventProperties WithMetadata(GuildScheduledEventMetadataProperties? metadata)
Parameters
metadata
GuildScheduledEventMetadataProperties
Returns
- GuildScheduledEventProperties
WithName(string)
public GuildScheduledEventProperties WithName(string name)
Parameters
name
string
Returns
- GuildScheduledEventProperties
WithPrivacyLevel(GuildScheduledEventPrivacyLevel)
public GuildScheduledEventProperties WithPrivacyLevel(GuildScheduledEventPrivacyLevel privacyLevel)
Parameters
privacyLevel
GuildScheduledEventPrivacyLevel
Returns
- GuildScheduledEventProperties
WithScheduledEndTime(DateTimeOffset?)
public GuildScheduledEventProperties WithScheduledEndTime(DateTimeOffset? scheduledEndTime)
Parameters
scheduledEndTime
DateTimeOffset?
Returns
- GuildScheduledEventProperties
WithScheduledStartTime(DateTimeOffset)
public GuildScheduledEventProperties WithScheduledStartTime(DateTimeOffset scheduledStartTime)
Parameters
scheduledStartTime
DateTimeOffset
Returns
- GuildScheduledEventProperties