Class GuildChannelProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class GuildChannelProperties
- Inheritance
-
GuildChannelProperties
- Inherited Members
-
Constructors
GuildChannelProperties(string, ChannelType)
public GuildChannelProperties(string name, ChannelType type)
Parameters
name
string
type
ChannelType
Properties
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("available_tags")]
public IEnumerable<ForumTagProperties>? AvailableTags { get; set; }
Property Value
- IEnumerable<ForumTagProperties>
Bitrate
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("bitrate")]
public int? Bitrate { get; set; }
Property Value
- int?
DefaultAutoArchiveDuration
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("default_auto_archive_duration")]
public int? DefaultAutoArchiveDuration { get; set; }
Property Value
- int?
DefaultForumLayout
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("default_forum_layout")]
public ForumLayoutType? DefaultForumLayout { get; set; }
Property Value
- ForumLayoutType?
DefaultReactionEmoji
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("default_reaction_emoji")]
public ForumGuildChannelDefaultReactionProperties? DefaultReactionEmoji { get; set; }
Property Value
- ForumGuildChannelDefaultReactionProperties?
DefaultSortOrder
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("default_sort_order")]
public SortOrderType? DefaultSortOrder { get; set; }
Property Value
- SortOrderType?
DefaultThreadSlowmode
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("default_thread_rate_limit_per_user")]
public int? DefaultThreadSlowmode { get; set; }
Property Value
- int?
Name
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
- string
Nsfw
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("nsfw")]
public bool? Nsfw { get; set; }
Property Value
- bool?
ParentId
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("parent_id")]
public ulong? ParentId { get; set; }
Property Value
- ulong?
PermissionOverwrites
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("permission_overwrites")]
public IEnumerable<PermissionOverwriteProperties>? PermissionOverwrites { get; set; }
Property Value
- IEnumerable<PermissionOverwriteProperties>
Position
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("position")]
public int? Position { get; set; }
Property Value
- int?
RtcRegion
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("rtc_region")]
public string? RtcRegion { get; set; }
Property Value
- string
Slowmode
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("rate_limit_per_user")]
public int? Slowmode { get; set; }
Property Value
- int?
Topic
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("topic")]
public string? Topic { get; set; }
Property Value
- string
Type
[JsonPropertyName("type")]
public ChannelType Type { get; set; }
Property Value
- ChannelType
UserLimit
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("user_limit")]
public int? UserLimit { get; set; }
Property Value
- int?
VideoQualityMode
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("video_quality_mode")]
public VideoQualityMode? VideoQualityMode { get; set; }
Property Value
- VideoQualityMode?
Methods
public GuildChannelProperties AddAvailableTags(params ForumTagProperties[] availableTags)
Parameters
availableTags
ForumTagProperties[]
Returns
- GuildChannelProperties
public GuildChannelProperties AddAvailableTags(IEnumerable<ForumTagProperties> availableTags)
Parameters
availableTags
IEnumerable<ForumTagProperties>
Returns
- GuildChannelProperties
AddPermissionOverwrites(params PermissionOverwriteProperties[])
public GuildChannelProperties AddPermissionOverwrites(params PermissionOverwriteProperties[] permissionOverwrites)
Parameters
permissionOverwrites
PermissionOverwriteProperties[]
Returns
- GuildChannelProperties
AddPermissionOverwrites(IEnumerable<PermissionOverwriteProperties>)
public GuildChannelProperties AddPermissionOverwrites(IEnumerable<PermissionOverwriteProperties> permissionOverwrites)
Parameters
permissionOverwrites
IEnumerable<PermissionOverwriteProperties>
Returns
- GuildChannelProperties
public GuildChannelProperties WithAvailableTags(IEnumerable<ForumTagProperties>? availableTags)
Parameters
availableTags
IEnumerable<ForumTagProperties>
Returns
- GuildChannelProperties
WithBitrate(int?)
public GuildChannelProperties WithBitrate(int? bitrate)
Parameters
bitrate
int?
Returns
- GuildChannelProperties
WithDefaultAutoArchiveDuration(int?)
public GuildChannelProperties WithDefaultAutoArchiveDuration(int? defaultAutoArchiveDuration)
Parameters
defaultAutoArchiveDuration
int?
Returns
- GuildChannelProperties
WithDefaultForumLayout(ForumLayoutType?)
public GuildChannelProperties WithDefaultForumLayout(ForumLayoutType? defaultForumLayout)
Parameters
defaultForumLayout
ForumLayoutType?
Returns
- GuildChannelProperties
WithDefaultReactionEmoji(ForumGuildChannelDefaultReactionProperties?)
public GuildChannelProperties WithDefaultReactionEmoji(ForumGuildChannelDefaultReactionProperties? defaultReactionEmoji)
Parameters
defaultReactionEmoji
ForumGuildChannelDefaultReactionProperties?
Returns
- GuildChannelProperties
WithDefaultSortOrder(SortOrderType?)
public GuildChannelProperties WithDefaultSortOrder(SortOrderType? defaultSortOrder)
Parameters
defaultSortOrder
SortOrderType?
Returns
- GuildChannelProperties
WithDefaultThreadSlowmode(int?)
public GuildChannelProperties WithDefaultThreadSlowmode(int? defaultThreadSlowmode)
Parameters
defaultThreadSlowmode
int?
Returns
- GuildChannelProperties
WithName(string)
public GuildChannelProperties WithName(string name)
Parameters
name
string
Returns
- GuildChannelProperties
WithNsfw(bool?)
public GuildChannelProperties WithNsfw(bool? nsfw = true)
Parameters
nsfw
bool?
Returns
- GuildChannelProperties
WithParentId(ulong?)
public GuildChannelProperties WithParentId(ulong? parentId)
Parameters
parentId
ulong?
Returns
- GuildChannelProperties
WithPermissionOverwrites(IEnumerable<PermissionOverwriteProperties>?)
public GuildChannelProperties WithPermissionOverwrites(IEnumerable<PermissionOverwriteProperties>? permissionOverwrites)
Parameters
permissionOverwrites
IEnumerable<PermissionOverwriteProperties>
Returns
- GuildChannelProperties
WithPosition(int?)
public GuildChannelProperties WithPosition(int? position)
Parameters
position
int?
Returns
- GuildChannelProperties
WithRtcRegion(string?)
public GuildChannelProperties WithRtcRegion(string? rtcRegion)
Parameters
rtcRegion
string
Returns
- GuildChannelProperties
WithSlowmode(int?)
public GuildChannelProperties WithSlowmode(int? slowmode)
Parameters
slowmode
int?
Returns
- GuildChannelProperties
WithTopic(string?)
public GuildChannelProperties WithTopic(string? topic)
Parameters
topic
string
Returns
- GuildChannelProperties
WithType(ChannelType)
public GuildChannelProperties WithType(ChannelType type)
Parameters
type
ChannelType
Returns
- GuildChannelProperties
WithUserLimit(int?)
public GuildChannelProperties WithUserLimit(int? userLimit)
Parameters
userLimit
int?
Returns
- GuildChannelProperties
WithVideoQualityMode(VideoQualityMode?)
public GuildChannelProperties WithVideoQualityMode(VideoQualityMode? videoQualityMode)
Parameters
videoQualityMode
VideoQualityMode?
Returns
- GuildChannelProperties