mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:57:22 +01:00
fix compilation error
This commit is contained in:
parent
d26daa6344
commit
7ef5848eb3
1 changed files with 0 additions and 7 deletions
|
|
@ -76,13 +76,6 @@ internal class DiscordBot : IHostedService
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_logger.LogInformation($"Cleaning up Vanity UIDs");
|
_logger.LogInformation($"Cleaning up Vanity UIDs");
|
||||||
var guild = _discordClient.Guilds.FirstOrDefault();
|
|
||||||
if (guild == null)
|
|
||||||
{
|
|
||||||
_logger.LogInformation($"Guild was null");
|
|
||||||
throw new Exception("Guild is null");
|
|
||||||
}
|
|
||||||
|
|
||||||
_logger.LogInformation("Getting application commands from guild {guildName}", guild.Name);
|
_logger.LogInformation("Getting application commands from guild {guildName}", guild.Name);
|
||||||
var restGuild = await _discordClient.Rest.GetGuildAsync(guild.Id);
|
var restGuild = await _discordClient.Rest.GetGuildAsync(guild.Id);
|
||||||
var vanityCommand = await restGuild.GetSlashCommandAsync(vanityCommandId).ConfigureAwait(false);
|
var vanityCommand = await restGuild.GetSlashCommandAsync(vanityCommandId).ConfigureAwait(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue