| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,13 +52,7 @@ public sealed class InteractivityConfiguration | |||
| 52 | 52 | /// Buttons to use for pagination. | |
| 53 | 53 | /// </summary> | |
| 54 | 54 | public PaginationButtons PaginationButtons { internal get; set; } = new(); | |
| 55 | - | ||
| 56 | - /// <summary> | ||
| 57 | - /// Whether interactivity should ACK buttons that are pushed. Setting this to <see langword="true"/> will also prevent subsequent event handlers from running. | ||
| 58 | - /// </summary> | ||
| 59 | - [Obsolete("This setting is no longer used or possible to implement.", false)] | ||
| 60 | - public bool AckPaginationButtons { internal get; set; } | ||
| 61 | - | ||
| 55 | + | ||
| 62 | 56 | /// <summary> | |
| 63 | 57 | /// How to handle buttons after pagination ends. | |
| 64 | 58 | /// </summary> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1229,17 +1229,7 @@ await this.ApiClient.ModifyGuildMemberAsync(guild_id, member_id, mdl.Nickname, | |||
| 1229 | 1229 | mdl.VoiceChannel.IfPresent(e => e?.Id), mdl.CommunicationDisabledUntil, mdl.AuditLogReason); | |
| 1230 | 1230 | } | |
| 1231 | 1231 | } | |
| 1232 | - | ||
| 1233 | - /// <summary> | ||
| 1234 | - /// Changes current user's nickname | ||
| 1235 | - /// </summary> | ||
| 1236 | - /// <param name="guild_id">Guild ID</param> | ||
| 1237 | - /// <param name="nick">Nickname</param> | ||
| 1238 | - /// <param name="reason">Reason why you set it to this</param> | ||
| 1239 | - /// <returns></returns> | ||
| 1240 | - [Obsolete("This method is depreciated and will be removed in a future version. Please use ModifyCurrentMemberAsync instead.", false)] | ||
| 1241 | - public Task ModifyCurrentMemberNicknameAsync(ulong guild_id, string nick, string reason) | ||
| 1242 | - => this.ApiClient.ModifyCurrentMemberAsync(guild_id, nick, reason); | ||
| 1232 | + | ||
| 1243 | 1233 | ||
| 1244 | 1234 | /// <summary> | |
| 1245 | 1235 | /// Changes the current user in a guild. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -506,7 +506,6 @@ internal async Task SendRawPayloadAsync(string jsonPayload) | |||
| 506 | 506 | await this._webSocketClient.SendMessageAsync(jsonPayload); | |
| 507 | 507 | } | |
| 508 | 508 | ||
| 509 | - #nullable enable | ||
| 510 | 509 | /// <summary> | |
| 511 | 510 | /// Sends a raw payload to the gateway. This method is not recommended for use unless you know what you're doing. | |
| 512 | 511 | /// </summary> | |
@@ -518,21 +517,18 @@ internal async Task SendRawPayloadAsync(string jsonPayload) | |||
| 518 | 517 | public Task SendPayloadAsync<T>(GatewayOpCode opCode, T data) => this.SendPayloadAsync(opCode, (object?)data); | |
| 519 | 518 | ||
| 520 | 519 | /// <inheritdoc cref="SendPayloadAsync{T}(GatewayOpCode, T)"/> | |
| 521 | - /// <param name="data">The data to deserialize.</param> | ||
| 522 | - /// <param name="opCode">The opcode to send to the Discord gateway.</param> | ||
| 523 | 520 | [Obsolete("This method should not be used unless you know what you're doing. Instead, look towards the other explicitly implemented methods which come with client-side validation.")] | |
| 524 | 521 | public Task SendPayloadAsync(GatewayOpCode opCode, object? data = null) | |
| 525 | 522 | { | |
| 526 | - var payload = new GatewayPayload | ||
| 523 | + GatewayPayload payload = new() | ||
| 527 | 524 | { | |
| 528 | 525 | OpCode = opCode, | |
| 529 | 526 | Data = data | |
| 530 | 527 | }; | |
| 531 | 528 | ||
| 532 | - var payloadString = DiscordJson.SerializeObject(payload); | ||
| 529 | + string payloadString = DiscordJson.SerializeObject(payload); | ||
| 533 | 530 | return this.SendRawPayloadAsync(payloadString); | |
| 534 | 531 | } | |
| 535 | - #nullable disable | ||
| 536 | 532 | #endregion | |
| 537 | 533 | ||
| 538 | 534 | #region Semaphore Methods | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,14 +64,6 @@ public class DiscordInvite | |||
| 64 | 64 | /// </summary> | |
| 65 | 65 | [JsonProperty("target_application", NullValueHandling = NullValueHandling.Ignore)] | |
| 66 | 66 | public DiscordApplication TargetApplication { get; internal set; } | |
| 67 | - | ||
| 68 | - /// <summary> | ||
| 69 | - /// Gets the type of user who the invite is for. | ||
| 70 | - /// </summary> | ||
| 71 | - [Obsolete("This property is depreciated and will be removed in a future version. Please use TargetType instead.", false)] | ||
| 72 | - [JsonProperty("target_user_type", NullValueHandling = NullValueHandling.Ignore)] | ||
| 73 | - public TargetUserType? TargetUserType { get; internal set; } | ||
| 74 | - | ||
| 75 | 67 | /// <summary> | |
| 76 | 68 | /// Gets the target application for this invite. | |
| 77 | 69 | /// </summary> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,8 +21,6 @@ | |||
| 21 | 21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 22 | 22 | // SOFTWARE. | |
| 23 | 23 | ||
| 24 | - using System; | ||
| 25 | - | ||
| 26 | 24 | namespace DSharpPlus | |
| 27 | 25 | { | |
| 28 | 26 | /// <summary> | |
@@ -60,12 +58,6 @@ public enum ChannelType : int | |||
| 60 | 58 | /// </summary> | |
| 61 | 59 | News = 5, | |
| 62 | 60 | ||
| 63 | - /// <summary> | ||
| 64 | - /// Indicates that this is a store channel. | ||
| 65 | - /// </summary> | ||
| 66 | - [Obsolete("Store channels have been sunset.", true)] | ||
| 67 | - Store = 6, | ||
| 68 | - | ||
| 69 | 61 | /// <summary> | |
| 70 | 62 | /// Indicates that this is a thread within a news channel. | |
| 71 | 63 | /// </summary> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -274,13 +274,6 @@ public enum Permissions : long | |||
| 274 | 274 | [PermissionString("Allow stream")] | |
| 275 | 275 | Stream = 0x0000000000000200, | |
| 276 | 276 | ||
| 277 | - /// <summary> | ||
| 278 | - /// Allows the user to use slash commands. | ||
| 279 | - /// </summary> | ||
| 280 | - [Obsolete("Replaced by UseApplicationCommands", false)] | ||
| 281 | - [PermissionString("Use slash commands")] | ||
| 282 | - UseSlashCommands = 0x0000000080000000, | ||
| 283 | - | ||
| 284 | 277 | /// <summary> | |
| 285 | 278 | /// Allows the user to use application commands. | |
| 286 | 279 | /// </summary> | |
@@ -305,20 +298,6 @@ public enum Permissions : long | |||
| 305 | 298 | [PermissionString("Manage Threads")] | |
| 306 | 299 | ManageThreads = 0x0000000400000000, | |
| 307 | 300 | ||
| 308 | - /// <summary> | ||
| 309 | - /// Allows for creating and participating in threads. | ||
| 310 | - /// </summary> | ||
| 311 | - [Obsolete("Replaced by CreatePublicThreads and SendMessagesInThreads", false)] | ||
| 312 | - [PermissionString("Use Public Threads")] | ||
| 313 | - UsePublicThreads = 0x0000000800000000, | ||
| 314 | - | ||
| 315 | - /// <summary> | ||
| 316 | - /// Allows for creating and participating in private threads. | ||
| 317 | - /// </summary> | ||
| 318 | - [Obsolete("Replaced by CreatePrivateThreads and SendMessagesInThreads", false)] | ||
| 319 | - [PermissionString("Use Private Threads")] | ||
| 320 | - UsePrivateThreads = 0x0000001000000000, | ||
| 321 | - | ||
| 322 | 301 | /// <summary> | |
| 323 | 302 | /// Allows for creating public threads. | |
| 324 | 303 | /// </summary> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,22 +21,13 @@ | |||
| 21 | 21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 22 | 22 | // SOFTWARE. | |
| 23 | 23 | ||
| 24 | - using System; | ||
| 25 | - | ||
| 26 | 24 | namespace DSharpPlus | |
| 27 | 25 | { | |
| 28 | 26 | /// <summary> | |
| 29 | 27 | /// Token type | |
| 30 | 28 | /// </summary> | |
| 31 | 29 | public enum TokenType | |
| 32 | 30 | { | |
| 33 | - /// <summary> | ||
| 34 | - /// User token type | ||
| 35 | - /// </summary> | ||
| 36 | - [Obsolete("Logging in with a user token may result in your account being terminated, and is therefore highly unrecommended." + | ||
| 37 | - "\nIf anything goes wrong with this, we will not provide any support!", true)] | ||
| 38 | - User = 0, | ||
| 39 | - | ||
| 40 | 31 | /// <summary> | |
| 41 | 32 | /// Bot token type | |
| 42 | 33 | /// </summary> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments