Browse Source

Init

pull/2409/head
Armano den Boef GitHub 2 years ago
parent
commit
4a9973285b
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