mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-03 20:49:54 +03:00
Do not grant starter role if member is muted
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
00f5fa0d8d
commit
8ca4b83b9c
2 changed files with 2 additions and 4 deletions
|
@ -150,7 +150,7 @@ public static class Boyfriend {
|
|||
var user = guild.GetUser(mData.Id);
|
||||
if (DateTimeOffset.Now >= mData.BannedUntil) _ = guild.RemoveBanAsync(mData.Id);
|
||||
if (!mData.IsInGuild) continue;
|
||||
if (!mData.Roles.Contains(starterRoleId)) _ = user.AddRoleAsync(starterRoleId);
|
||||
if (!mData.Roles.Contains(starterRoleId) && mData.MutedUntil is null) _ = user.AddRoleAsync(starterRoleId);
|
||||
|
||||
if (DateTimeOffset.Now >= mData.MutedUntil) {
|
||||
await Utils.UnmuteMemberAsync(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue