Package discord4j.core.object
Class IntegrationAccount
java.lang.Object
discord4j.core.object.IntegrationAccount
- All Implemented Interfaces:
DiscordObject
A Discord Integration Account.
- See Also:
-
Constructor Summary
ConstructorDescriptionIntegrationAccount
(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationAccountData data) Constructs aIntegrationAccount
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptionReturns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.IntegrationAccountData
getData()
Gets the data of the account.getId()
Gets the id of the account.getName()
Gets the name of the account.
-
Constructor Details
-
IntegrationAccount
public IntegrationAccount(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationAccountData data) Constructs aIntegrationAccount
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.
-
getData
public discord4j.discordjson.json.IntegrationAccountData getData()Gets the data of the account.- Returns:
- The data of the account.
-
getId
Gets the id of the account.- Returns:
- The id of the account.
-
getName
Gets the name of the account.- Returns:
- The name of the account.
-