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 SummaryModifier 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- 
getTypeThe type of this invite target.- Returns:
- The type of this invite target
 
- 
getIdThe Snowflake id of the target entity of this invite.- Returns:
- The id of the target entity
- Throws:
- IllegalStateException- If there is no target entity,- TargetTypeis- Invite.TargetType.UNKNOWN
 
- 
getIdLonglong 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,- TargetTypeis- Invite.TargetType.UNKNOWN
 
- 
getUser- Returns:
- The target user of this invite
- See Also:
 
- 
getApplicationThe targetInvite.EmbeddedApplicationof this invite ornullif theTargeTypeis notInvite.TargetType.EMBEDDED_APPLICATION- Returns:
- The target application of this invite
- See Also:
 
 
-