mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-10 16:03:15 +03:00
Fix CI alerts again
This commit is contained in:
parent
1f45a605d7
commit
558e05156c
5 changed files with 22 additions and 4 deletions
|
@ -135,7 +135,17 @@ public sealed class SettingsCommand : ICommand {
|
|||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
if (selectedSetting is "MuteRole") data.MuteRole = guild.GetRole(mention);
|
||||
switch (selectedSetting) {
|
||||
case "MuteRole":
|
||||
data.MuteRole = guild.GetRole(mention);
|
||||
break;
|
||||
case "PublicFeedbackChannel":
|
||||
data.PublicFeedbackChannel = guild.GetTextChannel(mention);
|
||||
break;
|
||||
case "PrivateFeedbackChannel":
|
||||
data.PrivateFeedbackChannel = guild.GetTextChannel(mention);
|
||||
break;
|
||||
}
|
||||
|
||||
config[selectedSetting] = value;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ public sealed class UnbanCommand : ICommand {
|
|||
if (reason is not null) await UnbanUserAsync(cmd, id.Value, reason);
|
||||
}
|
||||
|
||||
public static async Task UnbanUserAsync(CommandProcessor cmd, ulong id, string reason) {
|
||||
private static async Task UnbanUserAsync(CommandProcessor cmd, ulong id, string reason) {
|
||||
var requestOptions = Utils.GetRequestOptions($"({cmd.Context.User}) {reason}");
|
||||
await cmd.Context.Guild.RemoveBanAsync(id, requestOptions);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue