1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-01 19:49:55 +03:00

forgor 💀

This commit is contained in:
Octol1ttle 2023-01-18 12:05:36 +05:00
parent 7059c7576d
commit 1cc4c92b8f
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
9 changed files with 13 additions and 74 deletions

View file

@ -10,7 +10,7 @@ public sealed class UnmuteCommand : ICommand {
public async Task RunAsync(CommandProcessor cmd, string[] args, string[] cleanArgs) {
if (!cmd.HasPermission(GuildPermission.ModerateMembers)) return;
var toUnmute = cmd.GetMember(args, 0, "ToUnmute");
var toUnmute = cmd.GetMember(args, 0);
if (toUnmute is null) return;
var reason = cmd.GetRemaining(args, 1, "UnmuteReason");
if (reason is not null && cmd.CanInteractWith(toUnmute, "Unmute"))