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:
Invite.getTarget()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Invite.EmbeddedApplication
getApplication()
The targetInvite.EmbeddedApplication
of this invite ornull
if theTargeType
is notInvite.TargetType.EMBEDDED_APPLICATION
java.lang.String
getId()
The Snowflake id of the target entity of this invite.long
getIdLong()
The Snowflake id of the target entity of this invite.Invite.TargetType
getType()
The type of this invite target.User
getUser()
-
-
-
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,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:
java.lang.IllegalStateException
- If there is no target entity,TargetType
isInvite.TargetType.UNKNOWN
-
getApplication
@Nullable Invite.EmbeddedApplication getApplication()
The targetInvite.EmbeddedApplication
of this invite ornull
if theTargeType
is notInvite.TargetType.EMBEDDED_APPLICATION
- Returns:
- The target application of this invite
- See Also:
Invite.EmbeddedApplication
-
-