| @@ -1988,23 +1988,21 @@ | |||||
| <member name="P:Discord.IStageChannel.PrivacyLevel"> | <member name="P:Discord.IStageChannel.PrivacyLevel"> | ||||
| <summary> | <summary> | ||||
| The <see cref="T:Discord.StagePrivacyLevel"/> of the current stage. | The <see cref="T:Discord.StagePrivacyLevel"/> of the current stage. | ||||
| Gets the <see cref="T:Discord.StagePrivacyLevel"/> of the current stage. | |||||
| </summary> | </summary> | ||||
| <remarks> | <remarks> | ||||
| If the stage isn't live then this property will be set to <see langword="null"/>. | If the stage isn't live then this property will be set to <see langword="null"/>. | ||||
| </remarks> | </remarks> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IStageChannel.DiscoverableDisabled"> | |||||
| <member name="P:Discord.IStageChannel.IsDiscoverableDisabled"> | |||||
| <summary> | <summary> | ||||
| <see langword="true"/> if stage discovery is disabled, otherwise <see langword="false"/>. | |||||
| Gets whether or not stage discovery is disabled. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IStageChannel.Live"> | |||||
| <member name="P:Discord.IStageChannel.IsLive"> | |||||
| <summary> | <summary> | ||||
| <see langword="true"/> when the stage is live, otherwise <see langword="false"/>. | |||||
| Gets whether or not the stage is live. | |||||
| </summary> | </summary> | ||||
| <remarks> | |||||
| If the stage isn't live then this property will be set to <see langword="null"/>. | |||||
| </remarks> | |||||
| </member> | </member> | ||||
| <member name="M:Discord.IStageChannel.StartStageAsync(System.String,Discord.StagePrivacyLevel,Discord.RequestOptions)"> | <member name="M:Discord.IStageChannel.StartStageAsync(System.String,Discord.StagePrivacyLevel,Discord.RequestOptions)"> | ||||
| <summary> | <summary> | ||||
| @@ -2238,39 +2236,39 @@ | |||||
| Gets the type of the current thread channel. | Gets the type of the current thread channel. | ||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IThreadChannel.Joined"> | |||||
| <member name="P:Discord.IThreadChannel.HasJoined"> | |||||
| <summary> | <summary> | ||||
| <see langword="true"/> if the current user has joined this thread, otherwise <see langword="false"/>. | |||||
| Gets whether or not the current user has joined this thread. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IThreadChannel.Archived"> | |||||
| <member name="P:Discord.IThreadChannel.IsArchived"> | |||||
| <summary> | <summary> | ||||
| <see langword="true"/> if the current thread is archived, otherwise <see langword="false"/>. | <see langword="true"/> if the current thread is archived, otherwise <see langword="false"/>. | ||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IThreadChannel.AutoArchiveDuration"> | <member name="P:Discord.IThreadChannel.AutoArchiveDuration"> | ||||
| <summary> | <summary> | ||||
| Duration to automatically archive the thread after recent activity. | |||||
| Gets whether or not the current thread is archived. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IThreadChannel.ArchiveTimestamp"> | <member name="P:Discord.IThreadChannel.ArchiveTimestamp"> | ||||
| <summary> | <summary> | ||||
| Timestamp when the thread's archive status was last changed, used for calculating recent activity. | |||||
| Gets the timestamp when the thread's archive status was last changed, used for calculating recent activity. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IThreadChannel.Locked"> | |||||
| <member name="P:Discord.IThreadChannel.IsLocked"> | |||||
| <summary> | <summary> | ||||
| <see langword="true"/> if the current thread is locked, otherwise <see langword="false"/> | |||||
| Gets whether or not the current thread is locked. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IThreadChannel.MemberCount"> | <member name="P:Discord.IThreadChannel.MemberCount"> | ||||
| <summary> | <summary> | ||||
| An approximate count of users in a thread, stops counting at 50. | |||||
| Gets an approximate count of users in a thread, stops counting after 50. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.IThreadChannel.MessageCount"> | <member name="P:Discord.IThreadChannel.MessageCount"> | ||||
| <summary> | <summary> | ||||
| An approximate count of messages in a thread, stops counting at 50. | |||||
| Gets an approximate count of messages in a thread, stops counting after 50. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.IThreadChannel.JoinAsync(Discord.RequestOptions)"> | <member name="M:Discord.IThreadChannel.JoinAsync(Discord.RequestOptions)"> | ||||
| @@ -3537,7 +3535,7 @@ | |||||
| </member> | </member> | ||||
| <member name="M:Discord.IGuild.GetStageChannelAsync(System.UInt64,Discord.CacheMode,Discord.RequestOptions)"> | <member name="M:Discord.IGuild.GetStageChannelAsync(System.UInt64,Discord.CacheMode,Discord.RequestOptions)"> | ||||
| <summary> | <summary> | ||||
| Gets a stage channel in this guild | |||||
| Gets a stage channel in this guild. | |||||
| </summary> | </summary> | ||||
| <param name="id">The snowflake identifier for the stage channel.</param> | <param name="id">The snowflake identifier for the stage channel.</param> | ||||
| <param name="mode">The <see cref="T:Discord.CacheMode"/> that determines whether the object should be fetched from cache.</param> | <param name="mode">The <see cref="T:Discord.CacheMode"/> that determines whether the object should be fetched from cache.</param> | ||||
| @@ -3782,7 +3780,7 @@ | |||||
| </member> | </member> | ||||
| <member name="M:Discord.IGuild.DisconnectAsync(Discord.IGuildUser)"> | <member name="M:Discord.IGuild.DisconnectAsync(Discord.IGuildUser)"> | ||||
| <summary> | <summary> | ||||
| Disconnects the user from its current voice channel | |||||
| Disconnects the user from its current voice channel. | |||||
| </summary> | </summary> | ||||
| <param name="user">The user to disconnect.</param> | <param name="user">The user to disconnect.</param> | ||||
| <returns>A task that represents the asynchronous operation for disconnecting a user.</returns> | <returns>A task that represents the asynchronous operation for disconnecting a user.</returns> | ||||
| @@ -4009,7 +4007,7 @@ | |||||
| </member> | </member> | ||||
| <member name="M:Discord.IGuild.CreateStickerAsync(System.String,System.String,System.Collections.Generic.IEnumerable{System.String},System.String,Discord.RequestOptions)"> | <member name="M:Discord.IGuild.CreateStickerAsync(System.String,System.String,System.Collections.Generic.IEnumerable{System.String},System.String,Discord.RequestOptions)"> | ||||
| <summary> | <summary> | ||||
| Creates a new sticker in this guild | |||||
| Creates a new sticker in this guild. | |||||
| </summary> | </summary> | ||||
| <param name="name">The name of the sticker.</param> | <param name="name">The name of the sticker.</param> | ||||
| <param name="description">The description of the sticker.</param> | <param name="description">The description of the sticker.</param> | ||||
| @@ -4022,7 +4020,7 @@ | |||||
| </member> | </member> | ||||
| <member name="M:Discord.IGuild.CreateStickerAsync(System.String,System.String,System.Collections.Generic.IEnumerable{System.String},System.IO.Stream,System.String,Discord.RequestOptions)"> | <member name="M:Discord.IGuild.CreateStickerAsync(System.String,System.String,System.Collections.Generic.IEnumerable{System.String},System.IO.Stream,System.String,Discord.RequestOptions)"> | ||||
| <summary> | <summary> | ||||
| Creates a new sticker in this guild | |||||
| Creates a new sticker in this guild. | |||||
| </summary> | </summary> | ||||
| <param name="name">The name of the sticker.</param> | <param name="name">The name of the sticker.</param> | ||||
| <param name="description">The description of the sticker.</param> | <param name="description">The description of the sticker.</param> | ||||
| @@ -4766,12 +4764,12 @@ | |||||
| </member> | </member> | ||||
| <member name="P:Discord.MessageCommandBuilder.Name"> | <member name="P:Discord.MessageCommandBuilder.Name"> | ||||
| <summary> | <summary> | ||||
| The name of this Message command. | |||||
| Gets or sets the name of this Message command. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.MessageCommandBuilder.DefaultPermission"> | |||||
| <member name="P:Discord.MessageCommandBuilder.IsDefaultPermission"> | |||||
| <summary> | <summary> | ||||
| Whether the command is enabled by default when the app is added to a guild | |||||
| Gets or sets whether the command is enabled by default when the app is added to a guild | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.MessageCommandBuilder.Build"> | <member name="M:Discord.MessageCommandBuilder.Build"> | ||||
| @@ -4795,7 +4793,7 @@ | |||||
| <summary> | <summary> | ||||
| Sets the default permission of the current command. | Sets the default permission of the current command. | ||||
| </summary> | </summary> | ||||
| <param name="value">The default permission value to set.</param> | |||||
| <param name="isDefaultPermission">The default permission value to set.</param> | |||||
| <returns>The current builder.</returns> | <returns>The current builder.</returns> | ||||
| </member> | </member> | ||||
| <member name="T:Discord.MessageCommandProperties"> | <member name="T:Discord.MessageCommandProperties"> | ||||
| @@ -4810,17 +4808,17 @@ | |||||
| </member> | </member> | ||||
| <member name="F:Discord.UserCommandBuilder.MaxNameLength"> | <member name="F:Discord.UserCommandBuilder.MaxNameLength"> | ||||
| <summary> | <summary> | ||||
| Returns the maximum length a commands name allowed by Discord | |||||
| Returns the maximum length a commands name allowed by Discord. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.UserCommandBuilder.Name"> | <member name="P:Discord.UserCommandBuilder.Name"> | ||||
| <summary> | <summary> | ||||
| The name of this User command. | |||||
| Gets or sets the name of this User command. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.UserCommandBuilder.DefaultPermission"> | |||||
| <member name="P:Discord.UserCommandBuilder.IsDefaultPermission"> | |||||
| <summary> | <summary> | ||||
| Whether the command is enabled by default when the app is added to a guild | |||||
| Gets or sets whether the command is enabled by default when the app is added to a guild. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.UserCommandBuilder.Build"> | <member name="M:Discord.UserCommandBuilder.Build"> | ||||
| @@ -4842,7 +4840,7 @@ | |||||
| <summary> | <summary> | ||||
| Sets the default permission of the current command. | Sets the default permission of the current command. | ||||
| </summary> | </summary> | ||||
| <param name="value">The default permission value to set.</param> | |||||
| <param name="isDefaultPermission">The default permission value to set.</param> | |||||
| <returns>The current builder.</returns> | <returns>The current builder.</returns> | ||||
| </member> | </member> | ||||
| <member name="T:Discord.UserCommandProperties"> | <member name="T:Discord.UserCommandProperties"> | ||||
| @@ -5191,7 +5189,7 @@ | |||||
| </member> | </member> | ||||
| <member name="P:Discord.ActionRowComponent.Components"> | <member name="P:Discord.ActionRowComponent.Components"> | ||||
| <summary> | <summary> | ||||
| The child components in this row. | |||||
| Gets the child components in this row. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="T:Discord.ButtonComponent"> | <member name="T:Discord.ButtonComponent"> | ||||
| @@ -5204,35 +5202,33 @@ | |||||
| </member> | </member> | ||||
| <member name="P:Discord.ButtonComponent.Style"> | <member name="P:Discord.ButtonComponent.Style"> | ||||
| <summary> | <summary> | ||||
| The <see cref="T:Discord.ButtonStyle"/> of this button, example buttons with each style can be found <see href="https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png">Here</see>. | |||||
| Gets the <see cref="T:Discord.ButtonStyle"/> of this button, example buttons with each style can be found <see href="https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png">Here</see>. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.ButtonComponent.Label"> | <member name="P:Discord.ButtonComponent.Label"> | ||||
| <summary> | <summary> | ||||
| The label of the button, this is the text that is shown. | |||||
| Gets the label of the button, this is the text that is shown. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.ButtonComponent.Emote"> | <member name="P:Discord.ButtonComponent.Emote"> | ||||
| <summary> | <summary> | ||||
| A <see cref="T:Discord.IEmote"/> that will be displayed with this button. | |||||
| Gets the <see cref="T:Discord.IEmote"/> displayed with this button. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.ButtonComponent.CustomId"> | <member name="P:Discord.ButtonComponent.CustomId"> | ||||
| <summary> | |||||
| A unique id that will be sent with a <see cref="T:Discord.IDiscordInteraction"/>. This is how you know what button was pressed. | |||||
| </summary> | |||||
| <inheritdoc/> | |||||
| </member> | </member> | ||||
| <member name="P:Discord.ButtonComponent.Url"> | <member name="P:Discord.ButtonComponent.Url"> | ||||
| <summary> | <summary> | ||||
| A URL for a <see cref="F:Discord.ButtonStyle.Link"/> button. | |||||
| Gets the URL for a <see cref="F:Discord.ButtonStyle.Link"/> button. | |||||
| </summary> | </summary> | ||||
| <remarks> | <remarks> | ||||
| You cannot have a button with a <b>URL</b> and a <b>CustomId</b>. | You cannot have a button with a <b>URL</b> and a <b>CustomId</b>. | ||||
| </remarks> | </remarks> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.ButtonComponent.Disabled"> | |||||
| <member name="P:Discord.ButtonComponent.IsDisabled"> | |||||
| <summary> | <summary> | ||||
| Whether this button is disabled or not. | |||||
| Gets whether this button is disabled or not. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.ButtonComponent.ToBuilder"> | <member name="M:Discord.ButtonComponent.ToBuilder"> | ||||
| @@ -5309,12 +5305,11 @@ | |||||
| <param name="components">The components to create the builder from.</param> | <param name="components">The components to create the builder from.</param> | ||||
| <returns>The newly created builder.</returns> | <returns>The newly created builder.</returns> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.ComponentBuilder.WithSelectMenu(System.String,System.String,System.Collections.Generic.List{Discord.SelectMenuOptionBuilder},System.String,System.Int32,System.Int32,System.Boolean,System.Int32)"> | |||||
| <member name="M:Discord.ComponentBuilder.WithSelectMenu(System.String,System.Collections.Generic.List{Discord.SelectMenuOptionBuilder},System.String,System.Int32,System.Int32,System.Boolean,System.Int32)"> | |||||
| <summary> | <summary> | ||||
| Adds a <see cref="T:Discord.SelectMenuBuilder"/> to the <see cref="T:Discord.ComponentBuilder"/> at the specific row. | Adds a <see cref="T:Discord.SelectMenuBuilder"/> to the <see cref="T:Discord.ComponentBuilder"/> at the specific row. | ||||
| If the row cannot accept the component then it will add it to a row that can. | If the row cannot accept the component then it will add it to a row that can. | ||||
| </summary> | </summary> | ||||
| <param name="label">The label of the menu.</param> | |||||
| <param name="customId">The custom id of the menu.</param> | <param name="customId">The custom id of the menu.</param> | ||||
| <param name="options">The options of the menu.</param> | <param name="options">The options of the menu.</param> | ||||
| <param name="placeholder">The placeholder of the menu.</param> | <param name="placeholder">The placeholder of the menu.</param> | ||||
| @@ -5444,7 +5439,7 @@ | |||||
| Gets or sets the url of the current button. | Gets or sets the url of the current button. | ||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.ButtonBuilder.Disabled"> | |||||
| <member name="P:Discord.ButtonBuilder.IsDisabled"> | |||||
| <summary> | <summary> | ||||
| Gets or sets whether the current button is disabled. | Gets or sets whether the current button is disabled. | ||||
| </summary> | </summary> | ||||
| @@ -5463,7 +5458,7 @@ | |||||
| <param name="customId">The custom ID of this button.</param> | <param name="customId">The custom ID of this button.</param> | ||||
| <param name="style">The custom ID of this button.</param> | <param name="style">The custom ID of this button.</param> | ||||
| <param name="emote">The emote of this button.</param> | <param name="emote">The emote of this button.</param> | ||||
| <param name="disabled">Disabled this button or not.</param> | |||||
| <param name="isDisabled">Disabled this button or not.</param> | |||||
| </member> | </member> | ||||
| <member name="M:Discord.ButtonBuilder.#ctor(Discord.ButtonComponent)"> | <member name="M:Discord.ButtonBuilder.#ctor(Discord.ButtonComponent)"> | ||||
| <summary> | <summary> | ||||
| @@ -5556,7 +5551,7 @@ | |||||
| <summary> | <summary> | ||||
| Sets whether the current button is disabled. | Sets whether the current button is disabled. | ||||
| </summary> | </summary> | ||||
| <param name="disabled">Whether the current button is disabled or not.</param> | |||||
| <param name="isDisabled">Whether the current button is disabled or not.</param> | |||||
| <returns>The current builder.</returns> | <returns>The current builder.</returns> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.ButtonBuilder.Build"> | <member name="M:Discord.ButtonBuilder.Build"> | ||||
| @@ -5623,7 +5618,7 @@ | |||||
| <exception cref="T:System.ArgumentException" accessor="set"><see cref="P:Discord.SelectMenuBuilder.Options"/> count exceeds <see cref="F:Discord.SelectMenuBuilder.MaxOptionCount"/>.</exception> | <exception cref="T:System.ArgumentException" accessor="set"><see cref="P:Discord.SelectMenuBuilder.Options"/> count exceeds <see cref="F:Discord.SelectMenuBuilder.MaxOptionCount"/>.</exception> | ||||
| <exception cref="T:System.ArgumentNullException" accessor="set"><see cref="P:Discord.SelectMenuBuilder.Options"/> is null.</exception> | <exception cref="T:System.ArgumentNullException" accessor="set"><see cref="P:Discord.SelectMenuBuilder.Options"/> is null.</exception> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuBuilder.Disabled"> | |||||
| <member name="P:Discord.SelectMenuBuilder.IsDisabled"> | |||||
| <summary> | <summary> | ||||
| Gets or sets whether the current menu is disabled. | Gets or sets whether the current menu is disabled. | ||||
| </summary> | </summary> | ||||
| @@ -5647,7 +5642,7 @@ | |||||
| <param name="placeholder">The placeholder of this select menu.</param> | <param name="placeholder">The placeholder of this select menu.</param> | ||||
| <param name="maxValues">The max values of this select menu.</param> | <param name="maxValues">The max values of this select menu.</param> | ||||
| <param name="minValues">The min values of this select menu.</param> | <param name="minValues">The min values of this select menu.</param> | ||||
| <param name="disabled">Disabled this select menu or not.</param> | |||||
| <param name="isDisabled">Disabled this select menu or not.</param> | |||||
| </member> | </member> | ||||
| <member name="M:Discord.SelectMenuBuilder.WithCustomId(System.String)"> | <member name="M:Discord.SelectMenuBuilder.WithCustomId(System.String)"> | ||||
| <summary> | <summary> | ||||
| @@ -5717,7 +5712,7 @@ | |||||
| <param name="value">The value of this option.</param> | <param name="value">The value of this option.</param> | ||||
| <param name="description">The description of this option.</param> | <param name="description">The description of this option.</param> | ||||
| <param name="emote">The emote of this option.</param> | <param name="emote">The emote of this option.</param> | ||||
| <param name="default">Render this option as selected by default or not.</param> | |||||
| <param name="isDefault">Render this option as selected by default or not.</param> | |||||
| <exception cref="T:System.InvalidOperationException">Options count reached <see cref="F:Discord.SelectMenuBuilder.MaxOptionCount"/>.</exception> | <exception cref="T:System.InvalidOperationException">Options count reached <see cref="F:Discord.SelectMenuBuilder.MaxOptionCount"/>.</exception> | ||||
| <returns> | <returns> | ||||
| The current builder. | The current builder. | ||||
| @@ -5727,7 +5722,7 @@ | |||||
| <summary> | <summary> | ||||
| Sets whether the current menu is disabled. | Sets whether the current menu is disabled. | ||||
| </summary> | </summary> | ||||
| <param name="disabled">Whether the current menu is disabled or not.</param> | |||||
| <param name="isDisabled">Whether the current menu is disabled or not.</param> | |||||
| <returns> | <returns> | ||||
| The current builder. | The current builder. | ||||
| </returns> | </returns> | ||||
| @@ -5784,7 +5779,7 @@ | |||||
| Gets or sets the emote of this option. | Gets or sets the emote of this option. | ||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuOptionBuilder.Default"> | |||||
| <member name="P:Discord.SelectMenuOptionBuilder.IsDefault"> | |||||
| <summary> | <summary> | ||||
| Gets or sets the whether or not this option will render selected by default. | Gets or sets the whether or not this option will render selected by default. | ||||
| </summary> | </summary> | ||||
| @@ -5802,7 +5797,7 @@ | |||||
| <param name="value">The value of this option.</param> | <param name="value">The value of this option.</param> | ||||
| <param name="description">The description of this option.</param> | <param name="description">The description of this option.</param> | ||||
| <param name="emote">The emote of this option.</param> | <param name="emote">The emote of this option.</param> | ||||
| <param name="default">Render this option as selected by default or not.</param> | |||||
| <param name="isDefault">Render this option as selected by default or not.</param> | |||||
| </member> | </member> | ||||
| <member name="M:Discord.SelectMenuOptionBuilder.#ctor(Discord.SelectMenuOption)"> | <member name="M:Discord.SelectMenuOptionBuilder.#ctor(Discord.SelectMenuOption)"> | ||||
| <summary> | <summary> | ||||
| @@ -5852,7 +5847,7 @@ | |||||
| <summary> | <summary> | ||||
| Sets the field default. | Sets the field default. | ||||
| </summary> | </summary> | ||||
| <param name="defaultValue">The value to set the field default to.</param> | |||||
| <param name="isDefault">The value to set the field default to.</param> | |||||
| <returns> | <returns> | ||||
| The current builder. | The current builder. | ||||
| </returns> | </returns> | ||||
| @@ -5905,7 +5900,7 @@ | |||||
| </member> | </member> | ||||
| <member name="P:Discord.MessageComponent.Components"> | <member name="P:Discord.MessageComponent.Components"> | ||||
| <summary> | <summary> | ||||
| The components to be used in a message. | |||||
| Gets the components to be used in a message. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.MessageComponent.Empty"> | <member name="P:Discord.MessageComponent.Empty"> | ||||
| @@ -5922,33 +5917,31 @@ | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuComponent.CustomId"> | <member name="P:Discord.SelectMenuComponent.CustomId"> | ||||
| <summary> | |||||
| The custom id of this Select menu that will be sent with a <see cref="T:Discord.IDiscordInteraction"/>. | |||||
| </summary> | |||||
| <inheritdoc/> | |||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuComponent.Options"> | <member name="P:Discord.SelectMenuComponent.Options"> | ||||
| <summary> | <summary> | ||||
| The menus options to select from. | |||||
| Gets the menus options to select from. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuComponent.Placeholder"> | <member name="P:Discord.SelectMenuComponent.Placeholder"> | ||||
| <summary> | <summary> | ||||
| A custom placeholder text if nothing is selected, max 100 characters. | |||||
| Gets the custom placeholder text if nothing is selected. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuComponent.MinValues"> | <member name="P:Discord.SelectMenuComponent.MinValues"> | ||||
| <summary> | <summary> | ||||
| The minimum number of items that must be chosen; default 1, min 0, max 25 | |||||
| Gets the minimum number of items that must be chosen. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuComponent.MaxValues"> | <member name="P:Discord.SelectMenuComponent.MaxValues"> | ||||
| <summary> | <summary> | ||||
| The maximum number of items that can be chosen; default 1, max 25 | |||||
| Gets the maximum number of items that can be chosen. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.SelectMenuComponent.Disabled"> | |||||
| <member name="P:Discord.SelectMenuComponent.IsDisabled"> | |||||
| <summary> | <summary> | ||||
| Whether this menu is disabled or not. | |||||
| Gets whether this menu is disabled or not. | |||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.SelectMenuComponent.ToBuilder"> | <member name="M:Discord.SelectMenuComponent.ToBuilder"> | ||||
| @@ -21,6 +21,7 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// The <see cref="StagePrivacyLevel"/> of the current stage. | /// The <see cref="StagePrivacyLevel"/> of the current stage. | ||||
| /// Gets the <see cref="StagePrivacyLevel"/> of the current stage. | |||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | /// <remarks> | ||||
| /// If the stage isn't live then this property will be set to <see langword="null"/>. | /// If the stage isn't live then this property will be set to <see langword="null"/>. | ||||
| @@ -28,17 +29,14 @@ namespace Discord | |||||
| StagePrivacyLevel? PrivacyLevel { get; } | StagePrivacyLevel? PrivacyLevel { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// <see langword="true"/> if stage discovery is disabled, otherwise <see langword="false"/>. | |||||
| /// Gets whether or not stage discovery is disabled. | |||||
| /// </summary> | /// </summary> | ||||
| bool? DiscoverableDisabled { get; } | |||||
| bool? IsDiscoverableDisabled { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// <see langword="true"/> when the stage is live, otherwise <see langword="false"/>. | |||||
| /// Gets whether or not the stage is live. | |||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | |||||
| /// If the stage isn't live then this property will be set to <see langword="null"/>. | |||||
| /// </remarks> | |||||
| bool Live { get; } | |||||
| bool IsLive { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Starts the stage, creating a stage instance. | /// Starts the stage, creating a stage instance. | ||||
| @@ -17,37 +17,37 @@ namespace Discord | |||||
| ThreadType Type { get; } | ThreadType Type { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// <see langword="true"/> if the current user has joined this thread, otherwise <see langword="false"/>. | |||||
| /// Gets whether or not the current user has joined this thread. | |||||
| /// </summary> | /// </summary> | ||||
| bool Joined { get; } | |||||
| bool HasJoined { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// <see langword="true"/> if the current thread is archived, otherwise <see langword="false"/>. | /// <see langword="true"/> if the current thread is archived, otherwise <see langword="false"/>. | ||||
| /// </summary> | /// </summary> | ||||
| bool Archived { get; } | |||||
| bool IsArchived { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Duration to automatically archive the thread after recent activity. | |||||
| /// Gets whether or not the current thread is archived. | |||||
| /// </summary> | /// </summary> | ||||
| ThreadArchiveDuration AutoArchiveDuration { get; } | ThreadArchiveDuration AutoArchiveDuration { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// Timestamp when the thread's archive status was last changed, used for calculating recent activity. | |||||
| /// Gets the timestamp when the thread's archive status was last changed, used for calculating recent activity. | |||||
| /// </summary> | /// </summary> | ||||
| DateTimeOffset ArchiveTimestamp { get; } | DateTimeOffset ArchiveTimestamp { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// <see langword="true"/> if the current thread is locked, otherwise <see langword="false"/> | |||||
| /// Gets whether or not the current thread is locked. | |||||
| /// </summary> | /// </summary> | ||||
| bool Locked { get; } | |||||
| bool IsLocked { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// An approximate count of users in a thread, stops counting at 50. | |||||
| /// Gets an approximate count of users in a thread, stops counting after 50. | |||||
| /// </summary> | /// </summary> | ||||
| int MemberCount { get; } | int MemberCount { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// An approximate count of messages in a thread, stops counting at 50. | |||||
| /// Gets an approximate count of messages in a thread, stops counting after 50. | |||||
| /// </summary> | /// </summary> | ||||
| int MessageCount { get; } | int MessageCount { get; } | ||||
| @@ -538,7 +538,7 @@ namespace Discord | |||||
| /// </returns> | /// </returns> | ||||
| Task<IVoiceChannel> GetVoiceChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); | Task<IVoiceChannel> GetVoiceChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null); | ||||
| /// <summary> | /// <summary> | ||||
| /// Gets a stage channel in this guild | |||||
| /// Gets a stage channel in this guild. | |||||
| /// </summary> | /// </summary> | ||||
| /// <param name="id">The snowflake identifier for the stage channel.</param> | /// <param name="id">The snowflake identifier for the stage channel.</param> | ||||
| /// <param name="mode">The <see cref="CacheMode"/> that determines whether the object should be fetched from cache.</param> | /// <param name="mode">The <see cref="CacheMode"/> that determines whether the object should be fetched from cache.</param> | ||||
| @@ -771,7 +771,7 @@ namespace Discord | |||||
| /// <returns>A guild user associated with the specified <paramref name="userId" />; <see langword="null" /> if the user is already in the guild.</returns> | /// <returns>A guild user associated with the specified <paramref name="userId" />; <see langword="null" /> if the user is already in the guild.</returns> | ||||
| Task<IGuildUser> AddGuildUserAsync(ulong userId, string accessToken, Action<AddGuildUserProperties> func = null, RequestOptions options = null); | Task<IGuildUser> AddGuildUserAsync(ulong userId, string accessToken, Action<AddGuildUserProperties> func = null, RequestOptions options = null); | ||||
| /// <summary> | /// <summary> | ||||
| /// Disconnects the user from its current voice channel | |||||
| /// Disconnects the user from its current voice channel. | |||||
| /// </summary> | /// </summary> | ||||
| /// <param name="user">The user to disconnect.</param> | /// <param name="user">The user to disconnect.</param> | ||||
| /// <returns>A task that represents the asynchronous operation for disconnecting a user.</returns> | /// <returns>A task that represents the asynchronous operation for disconnecting a user.</returns> | ||||
| @@ -990,7 +990,7 @@ namespace Discord | |||||
| Task<ICustomSticker> CreateStickerAsync(string name, string description, IEnumerable<string> tags, Image image, RequestOptions options = null); | Task<ICustomSticker> CreateStickerAsync(string name, string description, IEnumerable<string> tags, Image image, RequestOptions options = null); | ||||
| /// <summary> | /// <summary> | ||||
| /// Creates a new sticker in this guild | |||||
| /// Creates a new sticker in this guild. | |||||
| /// </summary> | /// </summary> | ||||
| /// <param name="name">The name of the sticker.</param> | /// <param name="name">The name of the sticker.</param> | ||||
| /// <param name="description">The description of the sticker.</param> | /// <param name="description">The description of the sticker.</param> | ||||
| @@ -1003,7 +1003,7 @@ namespace Discord | |||||
| Task<ICustomSticker> CreateStickerAsync(string name, string description, IEnumerable<string> tags, string path, RequestOptions options = null); | Task<ICustomSticker> CreateStickerAsync(string name, string description, IEnumerable<string> tags, string path, RequestOptions options = null); | ||||
| /// <summary> | /// <summary> | ||||
| /// Creates a new sticker in this guild | |||||
| /// Creates a new sticker in this guild. | |||||
| /// </summary> | /// </summary> | ||||
| /// <param name="name">The name of the sticker.</param> | /// <param name="name">The name of the sticker.</param> | ||||
| /// <param name="description">The description of the sticker.</param> | /// <param name="description">The description of the sticker.</param> | ||||
| @@ -18,7 +18,7 @@ namespace Discord | |||||
| public const int MaxNameLength = 32; | public const int MaxNameLength = 32; | ||||
| /// <summary> | /// <summary> | ||||
| /// The name of this Message command. | |||||
| /// Gets or sets the name of this Message command. | |||||
| /// </summary> | /// </summary> | ||||
| public string Name | public string Name | ||||
| { | { | ||||
| @@ -37,9 +37,9 @@ namespace Discord | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| /// Whether the command is enabled by default when the app is added to a guild | |||||
| /// Gets or sets whether the command is enabled by default when the app is added to a guild | |||||
| /// </summary> | /// </summary> | ||||
| public bool DefaultPermission { get; set; } = true; | |||||
| public bool IsDefaultPermission { get; set; } = true; | |||||
| private string _name { get; set; } | private string _name { get; set; } | ||||
| @@ -54,7 +54,7 @@ namespace Discord | |||||
| MessageCommandProperties props = new MessageCommandProperties() | MessageCommandProperties props = new MessageCommandProperties() | ||||
| { | { | ||||
| Name = Name, | Name = Name, | ||||
| DefaultPermission = DefaultPermission | |||||
| DefaultPermission = IsDefaultPermission | |||||
| }; | }; | ||||
| return props; | return props; | ||||
| @@ -77,11 +77,11 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Sets the default permission of the current command. | /// Sets the default permission of the current command. | ||||
| /// </summary> | /// </summary> | ||||
| /// <param name="value">The default permission value to set.</param> | |||||
| /// <param name="isDefaultPermission">The default permission value to set.</param> | |||||
| /// <returns>The current builder.</returns> | /// <returns>The current builder.</returns> | ||||
| public MessageCommandBuilder WithDefaultPermission (bool value) | |||||
| public MessageCommandBuilder WithDefaultPermission (bool isDefaultPermission) | |||||
| { | { | ||||
| DefaultPermission = value; | |||||
| IsDefaultPermission = isDefaultPermission; | |||||
| return this; | return this; | ||||
| } | } | ||||
| } | } | ||||
| @@ -13,12 +13,12 @@ namespace Discord | |||||
| public class UserCommandBuilder | public class UserCommandBuilder | ||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| /// Returns the maximum length a commands name allowed by Discord | |||||
| /// Returns the maximum length a commands name allowed by Discord. | |||||
| /// </summary> | /// </summary> | ||||
| public const int MaxNameLength = 32; | public const int MaxNameLength = 32; | ||||
| /// <summary> | /// <summary> | ||||
| /// The name of this User command. | |||||
| /// Gets or sets the name of this User command. | |||||
| /// </summary> | /// </summary> | ||||
| public string Name | public string Name | ||||
| { | { | ||||
| @@ -37,9 +37,9 @@ namespace Discord | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| /// Whether the command is enabled by default when the app is added to a guild | |||||
| /// Gets or sets whether the command is enabled by default when the app is added to a guild. | |||||
| /// </summary> | /// </summary> | ||||
| public bool DefaultPermission { get; set; } = true; | |||||
| public bool IsDefaultPermission { get; set; } = true; | |||||
| private string _name { get; set; } | private string _name { get; set; } | ||||
| @@ -52,7 +52,7 @@ namespace Discord | |||||
| UserCommandProperties props = new UserCommandProperties() | UserCommandProperties props = new UserCommandProperties() | ||||
| { | { | ||||
| Name = Name, | Name = Name, | ||||
| DefaultPermission = DefaultPermission | |||||
| DefaultPermission = IsDefaultPermission | |||||
| }; | }; | ||||
| return props; | return props; | ||||
| @@ -75,11 +75,11 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Sets the default permission of the current command. | /// Sets the default permission of the current command. | ||||
| /// </summary> | /// </summary> | ||||
| /// <param name="value">The default permission value to set.</param> | |||||
| /// <param name="isDefaultPermission">The default permission value to set.</param> | |||||
| /// <returns>The current builder.</returns> | /// <returns>The current builder.</returns> | ||||
| public UserCommandBuilder WithDefaultPermission (bool value) | |||||
| public UserCommandBuilder WithDefaultPermission (bool isDefaultPermission) | |||||
| { | { | ||||
| DefaultPermission = value; | |||||
| IsDefaultPermission = isDefaultPermission; | |||||
| return this; | return this; | ||||
| } | } | ||||
| } | } | ||||
| @@ -16,7 +16,7 @@ namespace Discord | |||||
| public ComponentType Type { get; } = ComponentType.ActionRow; | public ComponentType Type { get; } = ComponentType.ActionRow; | ||||
| /// <summary> | /// <summary> | ||||
| /// The child components in this row. | |||||
| /// Gets the child components in this row. | |||||
| /// </summary> | /// </summary> | ||||
| public IReadOnlyCollection<IMessageComponent> Components { get; internal set; } | public IReadOnlyCollection<IMessageComponent> Components { get; internal set; } | ||||
| @@ -16,27 +16,25 @@ namespace Discord | |||||
| public ComponentType Type { get; } = ComponentType.Button; | public ComponentType Type { get; } = ComponentType.Button; | ||||
| /// <summary> | /// <summary> | ||||
| /// The <see cref="ButtonStyle"/> of this button, example buttons with each style can be found <see href="https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png">Here</see>. | |||||
| /// Gets the <see cref="ButtonStyle"/> of this button, example buttons with each style can be found <see href="https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png">Here</see>. | |||||
| /// </summary> | /// </summary> | ||||
| public ButtonStyle Style { get; } | public ButtonStyle Style { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// The label of the button, this is the text that is shown. | |||||
| /// Gets the label of the button, this is the text that is shown. | |||||
| /// </summary> | /// </summary> | ||||
| public string Label { get; } | public string Label { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// A <see cref="IEmote"/> that will be displayed with this button. | |||||
| /// Gets the <see cref="IEmote"/> displayed with this button. | |||||
| /// </summary> | /// </summary> | ||||
| public IEmote Emote { get; } | public IEmote Emote { get; } | ||||
| /// <summary> | |||||
| /// A unique id that will be sent with a <see cref="IDiscordInteraction"/>. This is how you know what button was pressed. | |||||
| /// </summary> | |||||
| /// <inheritdoc/> | |||||
| public string CustomId { get; } | public string CustomId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// A URL for a <see cref="ButtonStyle.Link"/> button. | |||||
| /// Gets the URL for a <see cref="ButtonStyle.Link"/> button. | |||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | /// <remarks> | ||||
| /// You cannot have a button with a <b>URL</b> and a <b>CustomId</b>. | /// You cannot have a button with a <b>URL</b> and a <b>CustomId</b>. | ||||
| @@ -44,9 +42,9 @@ namespace Discord | |||||
| public string Url { get; } | public string Url { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// Whether this button is disabled or not. | |||||
| /// Gets whether this button is disabled or not. | |||||
| /// </summary> | /// </summary> | ||||
| public bool Disabled { get; } | |||||
| public bool IsDisabled { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Turns this button into a button builder. | /// Turns this button into a button builder. | ||||
| @@ -55,16 +53,16 @@ namespace Discord | |||||
| /// A newly created button builder with the same properties as this button. | /// A newly created button builder with the same properties as this button. | ||||
| /// </returns> | /// </returns> | ||||
| public ButtonBuilder ToBuilder() | public ButtonBuilder ToBuilder() | ||||
| => new ButtonBuilder(Label, CustomId, Style, Url, Emote, Disabled); | |||||
| => new ButtonBuilder(Label, CustomId, Style, Url, Emote, IsDisabled); | |||||
| internal ButtonComponent(ButtonStyle style, string label, IEmote emote, string customId, string url, bool disabled) | |||||
| internal ButtonComponent(ButtonStyle style, string label, IEmote emote, string customId, string url, bool isDisabled) | |||||
| { | { | ||||
| Style = style; | Style = style; | ||||
| Label = label; | Label = label; | ||||
| Emote = emote; | Emote = emote; | ||||
| CustomId = customId; | CustomId = customId; | ||||
| Url = url; | Url = url; | ||||
| Disabled = disabled; | |||||
| IsDisabled = isDisabled; | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -69,14 +69,14 @@ namespace Discord | |||||
| switch (component) | switch (component) | ||||
| { | { | ||||
| case ButtonComponent button: | case ButtonComponent button: | ||||
| WithButton(button.Label, button.CustomId, button.Style, button.Emote, button.Url, button.Disabled, row); | |||||
| WithButton(button.Label, button.CustomId, button.Style, button.Emote, button.Url, button.IsDisabled, row); | |||||
| break; | break; | ||||
| case ActionRowComponent actionRow: | case ActionRowComponent actionRow: | ||||
| foreach (var cmp in actionRow.Components) | foreach (var cmp in actionRow.Components) | ||||
| AddComponent(cmp, row); | AddComponent(cmp, row); | ||||
| break; | break; | ||||
| case SelectMenuComponent menu: | case SelectMenuComponent menu: | ||||
| WithSelectMenu(menu.Placeholder, menu.CustomId, menu.Options.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.Default)).ToList(), menu.Placeholder, menu.MinValues, menu.MaxValues, menu.Disabled, row); | |||||
| WithSelectMenu(menu.CustomId, menu.Options.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.Default)).ToList(), menu.Placeholder, menu.MinValues, menu.MaxValues, menu.IsDisabled, row); | |||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| @@ -85,7 +85,6 @@ namespace Discord | |||||
| /// Adds a <see cref="SelectMenuBuilder"/> to the <see cref="ComponentBuilder"/> at the specific row. | /// Adds a <see cref="SelectMenuBuilder"/> to the <see cref="ComponentBuilder"/> at the specific row. | ||||
| /// If the row cannot accept the component then it will add it to a row that can. | /// If the row cannot accept the component then it will add it to a row that can. | ||||
| /// </summary> | /// </summary> | ||||
| /// <param name="label">The label of the menu.</param> | |||||
| /// <param name="customId">The custom id of the menu.</param> | /// <param name="customId">The custom id of the menu.</param> | ||||
| /// <param name="options">The options of the menu.</param> | /// <param name="options">The options of the menu.</param> | ||||
| /// <param name="placeholder">The placeholder of the menu.</param> | /// <param name="placeholder">The placeholder of the menu.</param> | ||||
| @@ -94,7 +93,7 @@ namespace Discord | |||||
| /// <param name="disabled">Whether or not the menu is disabled.</param> | /// <param name="disabled">Whether or not the menu is disabled.</param> | ||||
| /// <param name="row">The row to add the menu to.</param> | /// <param name="row">The row to add the menu to.</param> | ||||
| /// <returns></returns> | /// <returns></returns> | ||||
| public ComponentBuilder WithSelectMenu(string label, string customId, List<SelectMenuOptionBuilder> options, | |||||
| public ComponentBuilder WithSelectMenu(string customId, List<SelectMenuOptionBuilder> options, | |||||
| string placeholder = null, int minValues = 1, int maxValues = 1, bool disabled = false, int row = 0) | string placeholder = null, int minValues = 1, int maxValues = 1, bool disabled = false, int row = 0) | ||||
| { | { | ||||
| return WithSelectMenu(new SelectMenuBuilder() | return WithSelectMenu(new SelectMenuBuilder() | ||||
| @@ -413,7 +412,7 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Gets or sets whether the current button is disabled. | /// Gets or sets whether the current button is disabled. | ||||
| /// </summary> | /// </summary> | ||||
| public bool Disabled { get; set; } | |||||
| public bool IsDisabled { get; set; } | |||||
| private string _label; | private string _label; | ||||
| @@ -432,14 +431,14 @@ namespace Discord | |||||
| /// <param name="customId">The custom ID of this button.</param> | /// <param name="customId">The custom ID of this button.</param> | ||||
| /// <param name="style">The custom ID of this button.</param> | /// <param name="style">The custom ID of this button.</param> | ||||
| /// <param name="emote">The emote of this button.</param> | /// <param name="emote">The emote of this button.</param> | ||||
| /// <param name="disabled">Disabled this button or not.</param> | |||||
| public ButtonBuilder(string label = null, string customId = null, ButtonStyle style = ButtonStyle.Primary, string url = null, IEmote emote = null, bool disabled = false) | |||||
| /// <param name="isDisabled">Disabled this button or not.</param> | |||||
| public ButtonBuilder(string label = null, string customId = null, ButtonStyle style = ButtonStyle.Primary, string url = null, IEmote emote = null, bool isDisabled = false) | |||||
| { | { | ||||
| CustomId = customId; | CustomId = customId; | ||||
| Style = style; | Style = style; | ||||
| Url = url; | Url = url; | ||||
| Label = label; | Label = label; | ||||
| Disabled = disabled; | |||||
| IsDisabled = isDisabled; | |||||
| Emote = emote; | Emote = emote; | ||||
| } | } | ||||
| @@ -452,7 +451,7 @@ namespace Discord | |||||
| Style = button.Style; | Style = button.Style; | ||||
| Url = button.Url; | Url = button.Url; | ||||
| Label = button.Label; | Label = button.Label; | ||||
| Disabled = button.Disabled; | |||||
| IsDisabled = button.IsDisabled; | |||||
| Emote = button.Emote; | Emote = button.Emote; | ||||
| } | } | ||||
| @@ -566,11 +565,11 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Sets whether the current button is disabled. | /// Sets whether the current button is disabled. | ||||
| /// </summary> | /// </summary> | ||||
| /// <param name="disabled">Whether the current button is disabled or not.</param> | |||||
| /// <param name="isDisabled">Whether the current button is disabled or not.</param> | |||||
| /// <returns>The current builder.</returns> | /// <returns>The current builder.</returns> | ||||
| public ButtonBuilder WithDisabled(bool disabled) | |||||
| public ButtonBuilder WithDisabled(bool isDisabled) | |||||
| { | { | ||||
| Disabled = disabled; | |||||
| IsDisabled = isDisabled; | |||||
| return this; | return this; | ||||
| } | } | ||||
| @@ -601,7 +600,7 @@ namespace Discord | |||||
| else if (string.IsNullOrEmpty(CustomId)) | else if (string.IsNullOrEmpty(CustomId)) | ||||
| throw new InvalidOperationException("Non-link buttons must have a custom id associated with them"); | throw new InvalidOperationException("Non-link buttons must have a custom id associated with them"); | ||||
| return new ButtonComponent(Style, Label, Emote, CustomId, Url, Disabled); | |||||
| return new ButtonComponent(Style, Label, Emote, CustomId, Url, IsDisabled); | |||||
| } | } | ||||
| } | } | ||||
| @@ -718,7 +717,7 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Gets or sets whether the current menu is disabled. | /// Gets or sets whether the current menu is disabled. | ||||
| /// </summary> | /// </summary> | ||||
| public bool Disabled { get; set; } | |||||
| public bool IsDisabled { get; set; } | |||||
| private List<SelectMenuOptionBuilder> _options = new List<SelectMenuOptionBuilder>(); | private List<SelectMenuOptionBuilder> _options = new List<SelectMenuOptionBuilder>(); | ||||
| private int _minValues = 1; | private int _minValues = 1; | ||||
| @@ -740,7 +739,7 @@ namespace Discord | |||||
| CustomId = selectMenu.Placeholder; | CustomId = selectMenu.Placeholder; | ||||
| MaxValues = selectMenu.MaxValues; | MaxValues = selectMenu.MaxValues; | ||||
| MinValues = selectMenu.MinValues; | MinValues = selectMenu.MinValues; | ||||
| Disabled = selectMenu.Disabled; | |||||
| IsDisabled = selectMenu.IsDisabled; | |||||
| Options = selectMenu.Options? | Options = selectMenu.Options? | ||||
| .Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.Default)) | .Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.Default)) | ||||
| .ToList(); | .ToList(); | ||||
| @@ -754,13 +753,13 @@ namespace Discord | |||||
| /// <param name="placeholder">The placeholder of this select menu.</param> | /// <param name="placeholder">The placeholder of this select menu.</param> | ||||
| /// <param name="maxValues">The max values of this select menu.</param> | /// <param name="maxValues">The max values of this select menu.</param> | ||||
| /// <param name="minValues">The min values of this select menu.</param> | /// <param name="minValues">The min values of this select menu.</param> | ||||
| /// <param name="disabled">Disabled this select menu or not.</param> | |||||
| public SelectMenuBuilder(string customId, List<SelectMenuOptionBuilder> options, string placeholder = null, int maxValues = 1, int minValues = 1, bool disabled = false) | |||||
| /// <param name="isDisabled">Disabled this select menu or not.</param> | |||||
| public SelectMenuBuilder(string customId, List<SelectMenuOptionBuilder> options, string placeholder = null, int maxValues = 1, int minValues = 1, bool isDisabled = false) | |||||
| { | { | ||||
| CustomId = customId; | CustomId = customId; | ||||
| Options = options; | Options = options; | ||||
| Placeholder = placeholder; | Placeholder = placeholder; | ||||
| Disabled = disabled; | |||||
| IsDisabled = isDisabled; | |||||
| MaxValues = maxValues; | MaxValues = maxValues; | ||||
| MinValues = minValues; | MinValues = minValues; | ||||
| } | } | ||||
| @@ -859,27 +858,27 @@ namespace Discord | |||||
| /// <param name="value">The value of this option.</param> | /// <param name="value">The value of this option.</param> | ||||
| /// <param name="description">The description of this option.</param> | /// <param name="description">The description of this option.</param> | ||||
| /// <param name="emote">The emote of this option.</param> | /// <param name="emote">The emote of this option.</param> | ||||
| /// <param name="default">Render this option as selected by default or not.</param> | |||||
| /// <param name="isDefault">Render this option as selected by default or not.</param> | |||||
| /// <exception cref="InvalidOperationException">Options count reached <see cref="MaxOptionCount"/>.</exception> | /// <exception cref="InvalidOperationException">Options count reached <see cref="MaxOptionCount"/>.</exception> | ||||
| /// <returns> | /// <returns> | ||||
| /// The current builder. | /// The current builder. | ||||
| /// </returns> | /// </returns> | ||||
| public SelectMenuBuilder AddOption(string label, string value, string description = null, IEmote emote = null, bool? @default = null) | |||||
| public SelectMenuBuilder AddOption(string label, string value, string description = null, IEmote emote = null, bool? isDefault = null) | |||||
| { | { | ||||
| AddOption(new SelectMenuOptionBuilder(label, value, description, emote, @default)); | |||||
| AddOption(new SelectMenuOptionBuilder(label, value, description, emote, isDefault)); | |||||
| return this; | return this; | ||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| /// Sets whether the current menu is disabled. | /// Sets whether the current menu is disabled. | ||||
| /// </summary> | /// </summary> | ||||
| /// <param name="disabled">Whether the current menu is disabled or not.</param> | |||||
| /// <param name="isDisabled">Whether the current menu is disabled or not.</param> | |||||
| /// <returns> | /// <returns> | ||||
| /// The current builder. | /// The current builder. | ||||
| /// </returns> | /// </returns> | ||||
| public SelectMenuBuilder WithDisabled(bool disabled) | |||||
| public SelectMenuBuilder WithDisabled(bool isDisabled) | |||||
| { | { | ||||
| Disabled = disabled; | |||||
| IsDisabled = isDisabled; | |||||
| return this; | return this; | ||||
| } | } | ||||
| @@ -891,7 +890,7 @@ namespace Discord | |||||
| { | { | ||||
| var options = Options?.Select(x => x.Build()).ToList(); | var options = Options?.Select(x => x.Build()).ToList(); | ||||
| return new SelectMenuComponent(CustomId, options, Placeholder, MinValues, MaxValues, Disabled); | |||||
| return new SelectMenuComponent(CustomId, options, Placeholder, MinValues, MaxValues, IsDisabled); | |||||
| } | } | ||||
| } | } | ||||
| @@ -991,7 +990,7 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Gets or sets the whether or not this option will render selected by default. | /// Gets or sets the whether or not this option will render selected by default. | ||||
| /// </summary> | /// </summary> | ||||
| public bool? Default { get; set; } | |||||
| public bool? IsDefault { get; set; } | |||||
| private string _label; | private string _label; | ||||
| private string _value; | private string _value; | ||||
| @@ -1009,14 +1008,14 @@ namespace Discord | |||||
| /// <param name="value">The value of this option.</param> | /// <param name="value">The value of this option.</param> | ||||
| /// <param name="description">The description of this option.</param> | /// <param name="description">The description of this option.</param> | ||||
| /// <param name="emote">The emote of this option.</param> | /// <param name="emote">The emote of this option.</param> | ||||
| /// <param name="default">Render this option as selected by default or not.</param> | |||||
| public SelectMenuOptionBuilder(string label, string value, string description = null, IEmote emote = null, bool? @default = null) | |||||
| /// <param name="isDefault">Render this option as selected by default or not.</param> | |||||
| public SelectMenuOptionBuilder(string label, string value, string description = null, IEmote emote = null, bool? isDefault = null) | |||||
| { | { | ||||
| Label = label; | Label = label; | ||||
| Value = value; | Value = value; | ||||
| Description = description; | Description = description; | ||||
| Emote = emote; | Emote = emote; | ||||
| Default = @default; | |||||
| this.IsDefault = isDefault; | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -1028,7 +1027,7 @@ namespace Discord | |||||
| Value = option.Value; | Value = option.Value; | ||||
| Description = option.Description; | Description = option.Description; | ||||
| Emote = option.Emote; | Emote = option.Emote; | ||||
| Default = option.Default; | |||||
| IsDefault = option.Default; | |||||
| } | } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -1089,13 +1088,13 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// Sets the field default. | /// Sets the field default. | ||||
| /// </summary> | /// </summary> | ||||
| /// <param name="defaultValue">The value to set the field default to.</param> | |||||
| /// <param name="isDefault">The value to set the field default to.</param> | |||||
| /// <returns> | /// <returns> | ||||
| /// The current builder. | /// The current builder. | ||||
| /// </returns> | /// </returns> | ||||
| public SelectMenuOptionBuilder WithDefault(bool defaultValue) | |||||
| public SelectMenuOptionBuilder WithDefault(bool isDefault) | |||||
| { | { | ||||
| Default = defaultValue; | |||||
| IsDefault = isDefault; | |||||
| return this; | return this; | ||||
| } | } | ||||
| @@ -1105,7 +1104,7 @@ namespace Discord | |||||
| /// <returns>The newly built <see cref="SelectMenuOption"/>.</returns> | /// <returns>The newly built <see cref="SelectMenuOption"/>.</returns> | ||||
| public SelectMenuOption Build() | public SelectMenuOption Build() | ||||
| { | { | ||||
| return new SelectMenuOption(Label, Value, Description, Emote, Default); | |||||
| return new SelectMenuOption(Label, Value, Description, Emote, IsDefault); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -12,7 +12,7 @@ namespace Discord | |||||
| public class MessageComponent | public class MessageComponent | ||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| /// The components to be used in a message. | |||||
| /// Gets the components to be used in a message. | |||||
| /// </summary> | /// </summary> | ||||
| public IReadOnlyCollection<ActionRowComponent> Components { get; } | public IReadOnlyCollection<ActionRowComponent> Components { get; } | ||||
| @@ -14,35 +14,33 @@ namespace Discord | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public ComponentType Type => ComponentType.SelectMenu; | public ComponentType Type => ComponentType.SelectMenu; | ||||
| /// <summary> | |||||
| /// The custom id of this Select menu that will be sent with a <see cref="IDiscordInteraction"/>. | |||||
| /// </summary> | |||||
| /// <inheritdoc/> | |||||
| public string CustomId { get; } | public string CustomId { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// The menus options to select from. | |||||
| /// Gets the menus options to select from. | |||||
| /// </summary> | /// </summary> | ||||
| public IReadOnlyCollection<SelectMenuOption> Options { get; } | public IReadOnlyCollection<SelectMenuOption> Options { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// A custom placeholder text if nothing is selected, max 100 characters. | |||||
| /// Gets the custom placeholder text if nothing is selected. | |||||
| /// </summary> | /// </summary> | ||||
| public string Placeholder { get; } | public string Placeholder { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// The minimum number of items that must be chosen; default 1, min 0, max 25 | |||||
| /// Gets the minimum number of items that must be chosen. | |||||
| /// </summary> | /// </summary> | ||||
| public int MinValues { get; } | public int MinValues { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// The maximum number of items that can be chosen; default 1, max 25 | |||||
| /// Gets the maximum number of items that can be chosen. | |||||
| /// </summary> | /// </summary> | ||||
| public int MaxValues { get; } | public int MaxValues { get; } | ||||
| /// <summary> | /// <summary> | ||||
| /// Whether this menu is disabled or not. | |||||
| /// Gets whether this menu is disabled or not. | |||||
| /// </summary> | /// </summary> | ||||
| public bool Disabled { get; } | |||||
| public bool IsDisabled { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Turns this select menu into a builder. | /// Turns this select menu into a builder. | ||||
| @@ -57,7 +55,7 @@ namespace Discord | |||||
| Placeholder, | Placeholder, | ||||
| MaxValues, | MaxValues, | ||||
| MinValues, | MinValues, | ||||
| Disabled); | |||||
| IsDisabled); | |||||
| internal SelectMenuComponent(string customId, List<SelectMenuOption> options, string placeholder, int minValues, int maxValues, bool disabled) | internal SelectMenuComponent(string customId, List<SelectMenuOption> options, string placeholder, int minValues, int maxValues, bool disabled) | ||||
| { | { | ||||
| @@ -66,7 +64,7 @@ namespace Discord | |||||
| Placeholder = placeholder; | Placeholder = placeholder; | ||||
| MinValues = minValues; | MinValues = minValues; | ||||
| MaxValues = maxValues; | MaxValues = maxValues; | ||||
| Disabled = disabled; | |||||
| IsDisabled = disabled; | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -39,7 +39,7 @@ namespace Discord.API | |||||
| Label = c.Label; | Label = c.Label; | ||||
| CustomId = c.CustomId; | CustomId = c.CustomId; | ||||
| Url = c.Url; | Url = c.Url; | ||||
| Disabled = c.Disabled; | |||||
| Disabled = c.IsDisabled; | |||||
| if (c.Emote != null) | if (c.Emote != null) | ||||
| { | { | ||||
| @@ -40,7 +40,7 @@ namespace Discord.API | |||||
| Placeholder = component.Placeholder; | Placeholder = component.Placeholder; | ||||
| MinValues = component.MinValues; | MinValues = component.MinValues; | ||||
| MaxValues = component.MaxValues; | MaxValues = component.MaxValues; | ||||
| Disabled = component.Disabled; | |||||
| Disabled = component.IsDisabled; | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -2435,10 +2435,10 @@ | |||||
| <member name="P:Discord.Rest.RestStageChannel.PrivacyLevel"> | <member name="P:Discord.Rest.RestStageChannel.PrivacyLevel"> | ||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.Rest.RestStageChannel.DiscoverableDisabled"> | |||||
| <member name="P:Discord.Rest.RestStageChannel.IsDiscoverableDisabled"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.Rest.RestStageChannel.Live"> | |||||
| <member name="P:Discord.Rest.RestStageChannel.IsLive"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="M:Discord.Rest.RestStageChannel.ModifyInstanceAsync(System.Action{Discord.StageInstanceProperties},Discord.RequestOptions)"> | <member name="M:Discord.Rest.RestStageChannel.ModifyInstanceAsync(System.Action{Discord.StageInstanceProperties},Discord.RequestOptions)"> | ||||
| @@ -2730,10 +2730,10 @@ | |||||
| Represents a thread channel received over REST. | Represents a thread channel received over REST. | ||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.Rest.RestThreadChannel.Joined"> | |||||
| <member name="P:Discord.Rest.RestThreadChannel.HasJoined"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.Rest.RestThreadChannel.Archived"> | |||||
| <member name="P:Discord.Rest.RestThreadChannel.IsArchived"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.Rest.RestThreadChannel.AutoArchiveDuration"> | <member name="P:Discord.Rest.RestThreadChannel.AutoArchiveDuration"> | ||||
| @@ -2742,7 +2742,7 @@ | |||||
| <member name="P:Discord.Rest.RestThreadChannel.ArchiveTimestamp"> | <member name="P:Discord.Rest.RestThreadChannel.ArchiveTimestamp"> | ||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.Rest.RestThreadChannel.Locked"> | |||||
| <member name="P:Discord.Rest.RestThreadChannel.IsLocked"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.Rest.RestThreadChannel.MemberCount"> | <member name="P:Discord.Rest.RestThreadChannel.MemberCount"> | ||||
| @@ -20,10 +20,10 @@ namespace Discord.Rest | |||||
| public StagePrivacyLevel? PrivacyLevel { get; private set; } | public StagePrivacyLevel? PrivacyLevel { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool? DiscoverableDisabled { get; private set; } | |||||
| public bool? IsDiscoverableDisabled { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Live { get; private set; } | |||||
| public bool IsLive { get; private set; } | |||||
| internal RestStageChannel(BaseDiscordClient discord, IGuild guild, ulong id) | internal RestStageChannel(BaseDiscordClient discord, IGuild guild, ulong id) | ||||
| : base(discord, guild, id) | : base(discord, guild, id) | ||||
| { | { | ||||
| @@ -39,18 +39,18 @@ namespace Discord.Rest | |||||
| internal void Update(StageInstance model, bool isLive = false) | internal void Update(StageInstance model, bool isLive = false) | ||||
| { | { | ||||
| Live = isLive; | |||||
| IsLive = isLive; | |||||
| if(isLive) | if(isLive) | ||||
| { | { | ||||
| Topic = model.Topic; | Topic = model.Topic; | ||||
| PrivacyLevel = model.PrivacyLevel; | PrivacyLevel = model.PrivacyLevel; | ||||
| DiscoverableDisabled = model.DiscoverableDisabled; | |||||
| IsDiscoverableDisabled = model.DiscoverableDisabled; | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| Topic = null; | Topic = null; | ||||
| PrivacyLevel = null; | PrivacyLevel = null; | ||||
| DiscoverableDisabled = null; | |||||
| IsDiscoverableDisabled = null; | |||||
| } | } | ||||
| } | } | ||||
| @@ -16,10 +16,10 @@ namespace Discord.Rest | |||||
| { | { | ||||
| public ThreadType Type { get; private set; } | public ThreadType Type { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Joined { get; private set; } | |||||
| public bool HasJoined { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Archived { get; private set; } | |||||
| public bool IsArchived { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public ThreadArchiveDuration AutoArchiveDuration { get; private set; } | public ThreadArchiveDuration AutoArchiveDuration { get; private set; } | ||||
| @@ -28,7 +28,7 @@ namespace Discord.Rest | |||||
| public DateTimeOffset ArchiveTimestamp { get; private set; } | public DateTimeOffset ArchiveTimestamp { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Locked { get; private set; } | |||||
| public bool IsLocked { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public int MemberCount { get; private set; } | public int MemberCount { get; private set; } | ||||
| @@ -58,14 +58,14 @@ namespace Discord.Rest | |||||
| { | { | ||||
| base.Update(model); | base.Update(model); | ||||
| Joined = model.ThreadMember.IsSpecified; | |||||
| HasJoined = model.ThreadMember.IsSpecified; | |||||
| if (model.ThreadMetadata.IsSpecified) | if (model.ThreadMetadata.IsSpecified) | ||||
| { | { | ||||
| Archived = model.ThreadMetadata.Value.Archived; | |||||
| IsArchived = model.ThreadMetadata.Value.Archived; | |||||
| AutoArchiveDuration = model.ThreadMetadata.Value.AutoArchiveDuration; | AutoArchiveDuration = model.ThreadMetadata.Value.AutoArchiveDuration; | ||||
| ArchiveTimestamp = model.ThreadMetadata.Value.ArchiveTimestamp; | ArchiveTimestamp = model.ThreadMetadata.Value.ArchiveTimestamp; | ||||
| Locked = model.ThreadMetadata.Value.Locked.GetValueOrDefault(false); | |||||
| IsLocked = model.ThreadMetadata.Value.Locked.GetValueOrDefault(false); | |||||
| } | } | ||||
| @@ -2274,10 +2274,10 @@ | |||||
| <member name="P:Discord.WebSocket.SocketStageChannel.PrivacyLevel"> | <member name="P:Discord.WebSocket.SocketStageChannel.PrivacyLevel"> | ||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketStageChannel.DiscoverableDisabled"> | |||||
| <member name="P:Discord.WebSocket.SocketStageChannel.IsDiscoverableDisabled"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketStageChannel.Live"> | |||||
| <member name="P:Discord.WebSocket.SocketStageChannel.IsLive"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketStageChannel.IsSpeaker"> | <member name="P:Discord.WebSocket.SocketStageChannel.IsSpeaker"> | ||||
| @@ -2610,7 +2610,7 @@ | |||||
| Gets the current users within this thread. | Gets the current users within this thread. | ||||
| </summary> | </summary> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.Joined"> | |||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.HasJoined"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.IsPrivateThread"> | <member name="P:Discord.WebSocket.SocketThreadChannel.IsPrivateThread"> | ||||
| @@ -2629,7 +2629,7 @@ | |||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.MemberCount"> | <member name="P:Discord.WebSocket.SocketThreadChannel.MemberCount"> | ||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.Archived"> | |||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.IsArchived"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.ArchiveTimestamp"> | <member name="P:Discord.WebSocket.SocketThreadChannel.ArchiveTimestamp"> | ||||
| @@ -2638,7 +2638,7 @@ | |||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.AutoArchiveDuration"> | <member name="P:Discord.WebSocket.SocketThreadChannel.AutoArchiveDuration"> | ||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.Locked"> | |||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.IsLocked"> | |||||
| <inheritdoc/> | <inheritdoc/> | ||||
| </member> | </member> | ||||
| <member name="P:Discord.WebSocket.SocketThreadChannel.Users"> | <member name="P:Discord.WebSocket.SocketThreadChannel.Users"> | ||||
| @@ -22,10 +22,10 @@ namespace Discord.WebSocket | |||||
| public StagePrivacyLevel? PrivacyLevel { get; private set; } | public StagePrivacyLevel? PrivacyLevel { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool? DiscoverableDisabled { get; private set; } | |||||
| public bool? IsDiscoverableDisabled { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Live { get; private set; } = false; | |||||
| public bool IsLive { get; private set; } = false; | |||||
| /// <summary> | /// <summary> | ||||
| /// Returns <see langword="true"/> if the current user is a speaker within the stage, otherwise <see langword="false"/>. | /// Returns <see langword="true"/> if the current user is a speaker within the stage, otherwise <see langword="false"/>. | ||||
| @@ -62,18 +62,18 @@ namespace Discord.WebSocket | |||||
| internal void Update(StageInstance model, bool isLive = false) | internal void Update(StageInstance model, bool isLive = false) | ||||
| { | { | ||||
| Live = isLive; | |||||
| IsLive = isLive; | |||||
| if (isLive) | if (isLive) | ||||
| { | { | ||||
| Topic = model.Topic; | Topic = model.Topic; | ||||
| PrivacyLevel = model.PrivacyLevel; | PrivacyLevel = model.PrivacyLevel; | ||||
| DiscoverableDisabled = model.DiscoverableDisabled; | |||||
| IsDiscoverableDisabled = model.DiscoverableDisabled; | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| Topic = null; | Topic = null; | ||||
| PrivacyLevel = null; | PrivacyLevel = null; | ||||
| DiscoverableDisabled = null; | |||||
| IsDiscoverableDisabled = null; | |||||
| } | } | ||||
| } | } | ||||
| @@ -35,7 +35,7 @@ namespace Discord.WebSocket | |||||
| => Users.FirstOrDefault(x => x.Id == Discord.CurrentUser.Id); | => Users.FirstOrDefault(x => x.Id == Discord.CurrentUser.Id); | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Joined { get; private set; } | |||||
| public bool HasJoined { get; private set; } | |||||
| /// <summary> | /// <summary> | ||||
| /// <see langword="true"/> if this thread is private, otherwise <see langword="false"/> | /// <see langword="true"/> if this thread is private, otherwise <see langword="false"/> | ||||
| @@ -55,7 +55,7 @@ namespace Discord.WebSocket | |||||
| public int MemberCount { get; private set; } | public int MemberCount { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Archived { get; private set; } | |||||
| public bool IsArchived { get; private set; } | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public DateTimeOffset ArchiveTimestamp { get; private set; } | public DateTimeOffset ArchiveTimestamp { get; private set; } | ||||
| @@ -64,7 +64,7 @@ namespace Discord.WebSocket | |||||
| public ThreadArchiveDuration AutoArchiveDuration { get; private set; } | public ThreadArchiveDuration AutoArchiveDuration { get; private set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public bool Locked { get; private set; } | |||||
| public bool IsLocked { get; private set; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Gets a collection of cached users within this thread. | /// Gets a collection of cached users within this thread. | ||||
| @@ -106,10 +106,10 @@ namespace Discord.WebSocket | |||||
| if (model.ThreadMetadata.IsSpecified) | if (model.ThreadMetadata.IsSpecified) | ||||
| { | { | ||||
| Archived = model.ThreadMetadata.Value.Archived; | |||||
| IsArchived = model.ThreadMetadata.Value.Archived; | |||||
| ArchiveTimestamp = model.ThreadMetadata.Value.ArchiveTimestamp; | ArchiveTimestamp = model.ThreadMetadata.Value.ArchiveTimestamp; | ||||
| AutoArchiveDuration = (ThreadArchiveDuration)model.ThreadMetadata.Value.AutoArchiveDuration; | AutoArchiveDuration = (ThreadArchiveDuration)model.ThreadMetadata.Value.AutoArchiveDuration; | ||||
| Locked = model.ThreadMetadata.Value.Locked.GetValueOrDefault(false); | |||||
| IsLocked = model.ThreadMetadata.Value.Locked.GetValueOrDefault(false); | |||||
| } | } | ||||
| if (model.OwnerId.IsSpecified) | if (model.OwnerId.IsSpecified) | ||||
| @@ -117,7 +117,7 @@ namespace Discord.WebSocket | |||||
| Owner = GetUser(model.OwnerId.Value); | Owner = GetUser(model.OwnerId.Value); | ||||
| } | } | ||||
| Joined = model.ThreadMember.IsSpecified; | |||||
| HasJoined = model.ThreadMember.IsSpecified; | |||||
| } | } | ||||
| internal IReadOnlyCollection<SocketThreadUser> RemoveUsers(ulong[] users) | internal IReadOnlyCollection<SocketThreadUser> RemoveUsers(ulong[] users) | ||||