Package net.dv8tion.jda.api.exceptions
Class MissingEntityInteractionPermissionsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
net.dv8tion.jda.api.exceptions.MissingEntityInteractionPermissionsException
- All Implemented Interfaces:
Serializable
Exception occurring on
detached entities
,
indicating that the permissions could not be checked on this combination of channel and member.
Getting/Checking the permissions of a Member
in a given GuildChannel
,
will only work under certain circumstances:
- The member is the
interaction caller
, and the channel is theinteraction channel
- The member is an interaction option (such as slash command option or a member
EntitySelectMenu
value) and the channel is theinteraction channel
- The member is the
interaction caller
, and the channel is an interaction option
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new MissingEntityInteractionPermissionsException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingEntityInteractionPermissionsException
Creates a new MissingEntityInteractionPermissionsException- Parameters:
reason
- The reason for this Exception
-