Skip to content

Commit a78918b

Browse files
Upgrade DSharpPlus to 5.0.0-nightly-02539
Adds DiscordMemberFlags.AutomodQuarantinedGuildTag; do not attempt to dehoist members who are quarantined for a bad guild tag
1 parent 34e701e commit a78918b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cliptok.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="Abyssal.HumanDateParser" Version="2.0.0-20191113.1" />
18-
<PackageReference Include="DSharpPlus" Version="5.0.0-nightly-02532" />
19-
<PackageReference Include="DSharpPlus.Commands" Version="5.0.0-nightly-02532" />
18+
<PackageReference Include="DSharpPlus" Version="5.0.0-nightly-02539" />
19+
<PackageReference Include="DSharpPlus.Commands" Version="5.0.0-nightly-02539" />
2020
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.2" />
2121
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.5">
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

Commands/DehoistCmds.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public async Task DehoistCmd(CommandContext ctx, [Parameter("member"), Descripti
2525
return;
2626
}
2727

28-
if (member.MemberFlags.Value.HasFlag(DiscordMemberFlags.AutomodQuarantinedUsername))
28+
if (member.MemberFlags.Value.HasFlag(DiscordMemberFlags.AutomodQuarantinedUsername) || member.MemberFlags.Value.HasFlag(DiscordMemberFlags.AutomodQuarantinedGuildTag))
2929
{
30-
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} {member.Mention} is quarantined because their name is in violation of AutoMod rules! Discord will not let me dehoist them. Please change their nickname manually.", ephemeral: true);
30+
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} {member.Mention} is quarantined because their profile is in violation of AutoMod rules! Discord will not let me dehoist them. Please change their nickname manually.", ephemeral: true);
3131
return;
3232
}
3333

0 commit comments

Comments
 (0)