mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@
|
|||
<PackageReference Include="Discord.Addons.Interactive" Version="2.0.0" />
|
||||
<PackageReference Include="Discord.Net" Version="2.4.0" />
|
||||
<PackageReference Include="Discord.Net.Providers.WS4Net" Version="2.4.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.1.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
|
||||
<PackageReference Include="NLog" Version="5.0.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue