Suppress obsolete warnings in deprecated code

This commit is contained in:
Noi 2022-03-20 18:11:20 -07:00
parent 97450482d9
commit 4e0f23c033
6 changed files with 12 additions and 5 deletions

View file

@ -127,6 +127,7 @@ public sealed class ShardInstance : IDisposable {
#endif
}
#pragma warning disable CS0618
/// <summary>
/// Determines if the incoming message is an incoming command, and dispatches to the appropriate handler if necessary.
/// </summary>
@ -166,6 +167,7 @@ public sealed class ShardInstance : IDisposable {
}
}
}
#pragma warning restore CS0618
// Slash command preparation and invocation
private async Task DiscordClient_InteractionCreated(SocketInteraction arg) {

View file

@ -1,4 +1,5 @@
using BirthdayBot.Data;
#pragma warning disable CS0618
using BirthdayBot.Data;
using NodaTime;
using System.Collections.ObjectModel;
using System.Text.RegularExpressions;

View file

@ -1,4 +1,5 @@
using BirthdayBot.Data;
#pragma warning disable CS0618
using BirthdayBot.Data;
using System.Text;
namespace BirthdayBot.TextCommands;

View file

@ -1,4 +1,5 @@
using BirthdayBot.Data;
#pragma warning disable CS0618
using BirthdayBot.Data;
using System.Text;
namespace BirthdayBot.TextCommands;

View file

@ -1,4 +1,5 @@
using BirthdayBot.Data;
#pragma warning disable CS0618
using BirthdayBot.Data;
using System.Text;
using System.Text.RegularExpressions;

View file

@ -1,4 +1,5 @@
using BirthdayBot.Data;
#pragma warning disable CS0618
using BirthdayBot.Data;
using System.Text.RegularExpressions;
namespace BirthdayBot.TextCommands;