mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-03 04:29:54 +03:00
Fixing bugs and other problems
This commit is contained in:
parent
905cf5619c
commit
f1bd54d6f6
16 changed files with 255 additions and 144 deletions
|
@ -147,6 +147,7 @@ public static partial class Utils {
|
|||
if (!toUnmute.Roles.Contains(role)) return false;
|
||||
await toUnmute.AddRolesAsync(data.MemberData[toUnmute.Id].Roles, requestOptions);
|
||||
await toUnmute.RemoveRoleAsync(role, requestOptions);
|
||||
data.MemberData[toUnmute.Id].MutedUntil = null;
|
||||
} else {
|
||||
if (toUnmute.TimedOutUntil is null || toUnmute.TimedOutUntil.Value < DateTimeOffset.Now) return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue