mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
Return muteResult
Signed-off-by: Macintosh II <mctaylxrs@outlook.com>
This commit is contained in:
parent
5153618583
commit
d20a0c54c9
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ public class MuteCommandGroup : CommandGroup
|
|||
var muteResult = await _guildApi.ModifyGuildMemberAsync(
|
||||
guildId, target.ID, roles: assignRoles,
|
||||
reason: $"({user.GetTag()}) {reason}".EncodeHeader(), ct: ct);
|
||||
return !muteResult.IsSuccess ? Result.FromError(muteResult.Error) : Result.FromSuccess();
|
||||
return muteResult;
|
||||
}
|
||||
|
||||
private async Task<Result> TimeoutUserAsync(
|
||||
|
@ -204,7 +204,7 @@ public class MuteCommandGroup : CommandGroup
|
|||
var muteResult = await _guildApi.ModifyGuildMemberAsync(
|
||||
guildId, target.ID, reason: $"({user.GetTag()}) {reason}".EncodeHeader(),
|
||||
communicationDisabledUntil: until, ct: ct);
|
||||
return !muteResult.IsSuccess ? Result.FromError(muteResult.Error) : Result.FromSuccess();
|
||||
return muteResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Reference in a new issue