Class IntegrationAccount

    • Constructor Detail

      • IntegrationAccount

        public IntegrationAccount​(GatewayDiscordClient gateway,
                                  discord4j.discordjson.json.IntegrationAccountData data)
        Constructs a IntegrationAccount with an associated GatewayDiscordClient and Discord data.
        Parameters:
        gateway - The GatewayDiscordClient associated to this object, must be non-null.
        data - The raw data as represented by Discord, must be non-null.
    • Method Detail

      • 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.