fix: Remove group check from RequireContextAttribute (#2409)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user