Package org.javacord.api.entity.team
Interface Team
-
- All Superinterfaces:
DiscordEntity,java.util.Formattable,Nameable
public interface Team extends DiscordEntity, Nameable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<Icon>getIcon()Gets the icon of the team.java.lang.StringgetName()Gets the name of the team.longgetOwnerId()Gets the id of the owner.java.util.Set<TeamMember>getTeamMembers()Gets the members of the team.default java.util.concurrent.CompletableFuture<User>requestOwner()Requests the owner of the team.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
-
-
-
Method Detail
-
getIcon
java.util.Optional<Icon> getIcon()
Gets the icon of the team.- Returns:
- The icon of the team.
-
getTeamMembers
java.util.Set<TeamMember> getTeamMembers()
Gets the members of the team.- Returns:
- The members of the team.
-
getOwnerId
long getOwnerId()
Gets the id of the owner.- Returns:
- The id of the owner.
-
getName
java.lang.String getName()
Gets the name of the team.
-
requestOwner
default java.util.concurrent.CompletableFuture<User> requestOwner()
Requests the owner of the team.- Returns:
- The owner of the team.
-
-