Package net.dv8tion.jda.api.entities
Interface Invite.InviteTarget
-
- Enclosing interface:
- Invite
public static interface Invite.InviteTargetPOJO for the target of this invite.- See Also:
Invite.getTarget()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Invite.EmbeddedApplicationgetApplication()The targetInvite.EmbeddedApplicationof this invite ornullif theTargeTypeis notInvite.TargetType.EMBEDDED_APPLICATIONjava.lang.StringgetId()The Snowflake id of the target entity of this invite.longgetIdLong()The Snowflake id of the target entity of this invite.Invite.TargetTypegetType()The type of this invite target.UsergetUser()
-
-
-
Method Detail
-
getType
@Nonnull Invite.TargetType getType()
The type of this invite target.- Returns:
- The type of this invite target
-
getId
@Nonnull java.lang.String getId()
The Snowflake id of the target entity of this invite.- Returns:
- The id of the target entity
- Throws:
java.lang.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:
java.lang.IllegalStateException- If there is no target entity,TargetTypeisInvite.TargetType.UNKNOWN
-
getApplication
@Nullable Invite.EmbeddedApplication getApplication()
The targetInvite.EmbeddedApplicationof this invite ornullif theTargeTypeis notInvite.TargetType.EMBEDDED_APPLICATION- Returns:
- The target application of this invite
- See Also:
Invite.EmbeddedApplication
-
-