diff --git a/Moonlight/App/Services/Discord/Bot/Commands/SetupCommand.cs b/Moonlight/App/Services/Discord/Bot/Commands/SetupCommand.cs index 9a96475..fa5d23f 100644 --- a/Moonlight/App/Services/Discord/Bot/Commands/SetupCommand.cs +++ b/Moonlight/App/Services/Discord/Bot/Commands/SetupCommand.cs @@ -9,7 +9,6 @@ public class SetupCommand : BaseModule public SetupCommand(DiscordSocketClient client, ConfigService configService, IServiceScope scope) : base(client, configService, scope) { } - [RequireUserPermission(GuildPermission.Administrator)] public async Task Handler(SocketSlashCommand command) { var dsc = Scope.ServiceProvider.GetRequiredService(); @@ -71,7 +70,7 @@ public class SetupCommand : BaseModule public override async Task Init() { - var command = new SlashCommandBuilder() + var command = new SlashCommandBuilder { Name = "setup", Description = "Setup the bot and Channels", @@ -88,6 +87,6 @@ public class SetupCommand : BaseModule }) }; - await Client.GetGuild((ulong)DiscordConfig.GuildId).CreateApplicationCommandAsync(command.Build()); + await Client.GetGuild(Convert.ToUInt64(DiscordConfig.GuildId)).CreateApplicationCommandAsync(command.Build()); } } \ No newline at end of file diff --git a/Moonlight/App/Services/Discord/Bot/DiscordBotService.cs b/Moonlight/App/Services/Discord/Bot/DiscordBotService.cs index ebd9b98..f5ba8a0 100644 --- a/Moonlight/App/Services/Discord/Bot/DiscordBotService.cs +++ b/Moonlight/App/Services/Discord/Bot/DiscordBotService.cs @@ -119,8 +119,7 @@ public class DiscordBotService { } catch (Exception ex) { - Logger.Error($"Module Error '{instance}' \n{ex.Message}"); - Logger.Error(ex.InnerException); + Logger.Error($"Module Error '{instance}' \n{ex}"); } }