Package discord4j.core.object
Class IntegrationAccount
- java.lang.Object
-
- discord4j.core.object.IntegrationAccount
-
- All Implemented Interfaces:
DiscordObject
public class IntegrationAccount extends Object implements DiscordObject
A Discord Integration Account.- See Also:
- Account Resource
-
-
Constructor Summary
Constructors Constructor Description IntegrationAccount(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationAccountData data)Constructs aIntegrationAccountwith an associatedGatewayDiscordClientand Discord data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayDiscordClientgetClient()Returns theGatewayDiscordClientthat created this object.discord4j.discordjson.json.IntegrationAccountDatagetData()Gets the data of the account.StringgetId()Gets the id of the account.StringgetName()Gets the name of the account.
-
-
-
Constructor Detail
-
IntegrationAccount
public IntegrationAccount(GatewayDiscordClient gateway, discord4j.discordjson.json.IntegrationAccountData data)
Constructs aIntegrationAccountwith an associatedGatewayDiscordClientand Discord data.- Parameters:
gateway- TheGatewayDiscordClientassociated to this object, must be non-null.data- The raw data as represented by Discord, must be non-null.
-
-
Method Detail
-
getClient
public GatewayDiscordClient getClient()
Description copied from interface:DiscordObjectReturns theGatewayDiscordClientthat created this object. Methods in it are exclusively based on the entity cache orStorein use. Refer to callinggetClient().rest()to access aDiscordClientthat is capable of requesting entities directly from the REST API.- Specified by:
getClientin interfaceDiscordObject- Returns:
- The
GatewayDiscordClientassociated to this object.
-
getData
public discord4j.discordjson.json.IntegrationAccountData getData()
Gets the data of the account.- Returns:
- The data of the account.
-
getId
public String getId()
Gets the id of the account.- Returns:
- The id of the account.
-
getName
public String getName()
Gets the name of the account.- Returns:
- The name of the account.
-
-