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.EmbeddedApplicationof this invite ornullif theTargeTypeis notInvite.TargetType.EMBEDDED_APPLICATIONgetId()The Snowflake id of the target entity of this invite.longThe 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,TargetTypeisInvite.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,TargetTypeisInvite.TargetType.UNKNOWN
 - 
getUser
- Returns:
 - The target user of this invite
 - See Also:
 
 - 
getApplication
The targetInvite.EmbeddedApplicationof this invite ornullif theTargeTypeis notInvite.TargetType.EMBEDDED_APPLICATION- Returns:
 - The target application of this invite
 - See Also:
 
 
 -