fix: Remove group check from RequireContextAttribute (#2409)

This commit is contained in:
Armano den Boef
2022-08-03 10:54:30 +02:00
committed by GitHub
parent ba02416421
commit b0b8167efb

View File

@@ -58,7 +58,7 @@ namespace Discord.Interactions
if ((Contexts & ContextType.Guild) != 0) if ((Contexts & ContextType.Guild) != 0)
isValid = !context.Interaction.IsDMInteraction; isValid = !context.Interaction.IsDMInteraction;
if ((Contexts & ContextType.DM) != 0 && (Contexts & ContextType.Group) != 0) if ((Contexts & ContextType.DM) != 0)
isValid = context.Interaction.IsDMInteraction; isValid = context.Interaction.IsDMInteraction;
if (isValid) if (isValid)