mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-08 04:01:05 +00:00
Nuget package updates
- Microsoft.Extensions - updated discord modules to check for null response.
This commit is contained in:
parent
e8da8862bf
commit
f416b5cd78
4 changed files with 22 additions and 3 deletions
|
|
@ -43,6 +43,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
|||
{
|
||||
foreach (var output in response)
|
||||
{
|
||||
if (output is null)
|
||||
continue;
|
||||
await ReplyAsync(output.Replace("&", "_"));
|
||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||
}
|
||||
|
|
@ -76,6 +78,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
|||
{
|
||||
foreach (var output in response)
|
||||
{
|
||||
if (output is null)
|
||||
continue;
|
||||
await ReplyAsync(output.Replace("&", "_"));
|
||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||
}
|
||||
|
|
@ -109,6 +113,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
|||
{
|
||||
foreach (var output in response)
|
||||
{
|
||||
if (output is null)
|
||||
continue;
|
||||
await ReplyAsync(output.Replace("&", "_"));
|
||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||
}
|
||||
|
|
@ -142,6 +148,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
|||
{
|
||||
foreach (var output in response)
|
||||
{
|
||||
if (output is null)
|
||||
continue;
|
||||
await ReplyAsync(output.Replace("&", "_"));
|
||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||
}
|
||||
|
|
@ -175,6 +183,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
|||
{
|
||||
foreach (var output in response)
|
||||
{
|
||||
if (output is null)
|
||||
continue;
|
||||
await ReplyAsync(output.Replace("&", "_"));
|
||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||
}
|
||||
|
|
@ -208,6 +218,8 @@ namespace ServerManagerTool.DiscordBot.Modules
|
|||
{
|
||||
foreach (var output in response)
|
||||
{
|
||||
if (output is null)
|
||||
continue;
|
||||
await ReplyAsync(output.Replace("&", "_"));
|
||||
await Task.Delay(COMMAND_RESPONSE_DELAY);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue