Browse Source

fix: Remove group check from RequireContextAttribute (#2409)

tags/3.8.0
Armano den Boef GitHub 2 years ago
parent
commit
b0b8167efb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Interactions/Attributes/Preconditions/RequireContextAttribute.cs

+ 1
- 1
src/Discord.Net.Interactions/Attributes/Preconditions/RequireContextAttribute.cs View File

@@ -58,7 +58,7 @@ namespace Discord.Interactions

if ((Contexts & ContextType.Guild) != 0)
isValid = !context.Interaction.IsDMInteraction;
if ((Contexts & ContextType.DM) != 0 && (Contexts & ContextType.Group) != 0)
if ((Contexts & ContextType.DM) != 0)
isValid = context.Interaction.IsDMInteraction;

if (isValid)


Loading…
Cancel
Save