Package discord4j.core.object.entity
Class ApplicationTeam
java.lang.Object
discord4j.core.object.entity.ApplicationTeam
- All Implemented Interfaces:
DiscordObject
,Entity
- See Also:
-
Constructor Summary
ConstructorDescriptionApplicationTeam
(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamData data) Constructs aApplicationTeam
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptionReturns theGatewayDiscordClient
that created this object.getId()
Gets the Snowflake that uniquely identifies this entity.Gets the members of the team.getName()
Gets the name of the team.getOwner()
Requests to retrieve the current team owner.getOwner
(EntityRetrievalStrategy retrievalStrategy) Requests to retrieve the current team owner, using the given retrieval strategy.Gets the user id of the current team owner.toString()
-
Constructor Details
-
ApplicationTeam
public ApplicationTeam(GatewayDiscordClient gateway, discord4j.discordjson.json.ApplicationTeamData data) Constructs aApplicationTeam
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.
-
-
Method Details
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
getId
Description copied from interface:Entity
Gets the Snowflake that uniquely identifies this entity. -
getMembers
Gets the members of the team.- Returns:
- The members of the team.
-
getName
Gets the name of the team.- Returns:
- The name of the team.
-
getOwnerId
Gets the user id of the current team owner.- Returns:
- The user id of the current team owner.
-
getOwner
Requests to retrieve the current team owner. -
getOwner
Requests to retrieve the current team owner, using the given retrieval strategy. -
toString
-