Interface PermissionsProvider
- All Superinterfaces:
Implementation.ExtensionProvidable
- All Known Implementing Classes:
DefaultPermissionsProvider
Interface for performing permission checks.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(Member member, InvocationContext<?> context) Checks if aMemberhas permissions.booleanhasPermission(User user, InvocationContext<?> context) Checks if aUserhas permissions.
-
Method Details
-
hasPermission
Checks if aUserhas permissions. Compared tohasPermission(Member, InvocationContext)this method will be called if the command gets executed in a non-guild context, where no member object is available.- Parameters:
user- theUserto perform the check againstcontext- the correspondingInvocationContext- Returns:
trueif the user has the permission to execute the command- See Also:
-
hasPermission
Checks if aMemberhas permissions.- Parameters:
member- theMemberto perform the check againstcontext- the correspondingInvocationContext- Returns:
trueif the user has the permission to execute the command
-