diff --git a/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs b/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs index 62b1719..223062a 100644 --- a/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs +++ b/src/Huppy/Huppy.App/Commands/SlashCommands/ServerCommands.cs @@ -98,7 +98,7 @@ public async Task GetServerInfo() [SlashCommand("configure", "Configure Huppy for your server")] [RequireUserPermission(GuildPermission.Administrator)] - public async Task ConfigureHuppy(bool? UseGreet = null, string? GreetingMessage = null, IRole? DefaultRole = null, bool? EnableNews = false, SocketGuildChannel? HuppyRoom = null, SocketGuildChannel? NewsRoom = null, SocketGuildChannel? GreetingRoom = null) + public async Task ConfigureHuppy(bool? UseGreet = null, string? GreetingMessage = null, IRole? DefaultRole = null, SocketGuildChannel? HuppyRoom = null, SocketGuildChannel? GreetingRoom = null) { var server = await _serverService.GetOrCreateAsync(Context.Guild.Id, Context.Guild.Name, Context.Guild.DefaultChannel.Id); diff --git a/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj b/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj index d5fdec1..e851131 100644 --- a/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj +++ b/src/HuppyService/HuppyService.Service/HuppyService.Service.csproj @@ -32,4 +32,10 @@ + + + Always + + + diff --git a/src/HuppyService/HuppyService.Service/Program.cs b/src/HuppyService/HuppyService.Service/Program.cs index be0641a..f20addb 100644 --- a/src/HuppyService/HuppyService.Service/Program.cs +++ b/src/HuppyService/HuppyService.Service/Program.cs @@ -20,6 +20,6 @@ app.UseHttpLogging(); -app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909"); +app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client."); app.Run(); diff --git a/src/HuppyService/HuppyService.Service/Services/ServerService.cs b/src/HuppyService/HuppyService.Service/Services/ServerService.cs index 201cc47..6a4435e 100644 --- a/src/HuppyService/HuppyService.Service/Services/ServerService.cs +++ b/src/HuppyService/HuppyService.Service/Services/ServerService.cs @@ -151,6 +151,7 @@ public override async Task Update(ServerModel request, ServerCal }; await _serverRepository.UpdateAsync(server); + await _serverRepository.SaveChangesAsync(); return new CommonResponse() { IsSuccess = true }; } }