Class IntegrationOwnersImpl

java.lang.Object
net.dv8tion.jda.internal.interactions.IntegrationOwnersImpl
All Implemented Interfaces:
IntegrationOwners

public class IntegrationOwnersImpl extends Object implements IntegrationOwners
  • Constructor Details

    • IntegrationOwnersImpl

      public IntegrationOwnersImpl(DataObject authorizedIntegrationOwners)
  • Method Details

    • getAuthorizingUserIdLong

      public long getAuthorizingUserIdLong()
      Description copied from interface: IntegrationOwners
      When the interaction has the USER_INSTALL integration type, returns the UserSnowflake which first authorized this interaction, or 0 otherwise.
      Specified by:
      getAuthorizingUserIdLong in interface IntegrationOwners
      Returns:
      the UserSnowflake which triggered the interaction, or 0 for non-user-installable commands
    • getAuthorizingGuildIdLong

      @Nullable public Long getAuthorizingGuildIdLong()
      Description copied from interface: IntegrationOwners
      When the interaction has the GUILD_INSTALL integration type, returns the Guild ID which first authorized this interaction, or 0 if the interaction is used in the app's bot DMs, returns null otherwise.
      Specified by:
      getAuthorizingGuildIdLong in interface IntegrationOwners
      Returns:
      the guild ID in which the interaction is triggered in, or 0 for Bot DMs, or null for non-guild-installable commands
    • toString

      public String toString()
      Overrides:
      toString in class Object