Package net.dv8tion.jda.api.entities
Interface Invite.InviteTarget
- Enclosing interface:
Invite
public static interface Invite.InviteTarget
POJO for the target of this invite.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe targetInvite.EmbeddedApplication
of this invite ornull
if theTargeType
is notInvite.TargetType.EMBEDDED_APPLICATION
getId()
The Snowflake id of the target entity of this invite.long
The Snowflake id of the target entity of this invite.getType()
The type of this invite target.getUser()
-
Method Details
-
getType
The type of this invite target.- Returns:
- The type of this invite target
-
getId
The Snowflake id of the target entity of this invite.- Returns:
- The id of the target entity
- Throws:
IllegalStateException
- If there is no target entity,TargetType
isInvite.TargetType.UNKNOWN
-
getIdLong
long getIdLong()The Snowflake id of the target entity of this invite.- Returns:
- The id of the target entity
- Throws:
IllegalStateException
- If there is no target entity,TargetType
isInvite.TargetType.UNKNOWN
-
getUser
- Returns:
- The target user of this invite
- See Also:
-
getApplication
The targetInvite.EmbeddedApplication
of this invite ornull
if theTargeType
is notInvite.TargetType.EMBEDDED_APPLICATION
- Returns:
- The target application of this invite
- See Also:
-