1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-14 01:36:08 +03:00

Update src/Commands/MuteCommandGroup.cs

Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com>
Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com>
This commit is contained in:
Macintxsh 2023-10-04 16:23:39 +03:00 committed by GitHub
parent e37149eb0f
commit d471ffa552
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,7 @@ public class MuteCommandGroup : CommandGroup
target, reason, duration, guildId, data, user, currentUser, until, ct);
if (!muteMethodResult.IsSuccess)
{
return Result.FromError(muteMethodResult.Error);
return muteMethodResult;
}
var title = string.Format(Messages.UserMuted, target.GetTag());