Class IntegrationOwnersImpl
java.lang.Object
net.dv8tion.jda.internal.interactions.IntegrationOwnersImpl
- All Implemented Interfaces:
IntegrationOwners
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhen the interaction has theGUILD_INSTALL
integration type, returns theGuild
ID which first authorized this interaction, or0
if the interaction is used in the app's bot DMs, returnsnull
otherwise.long
When the interaction has theUSER_INSTALL
integration type, returns theUserSnowflake
which first authorized this interaction, or0
otherwise.toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.interactions.IntegrationOwners
getAuthorizingGuildId, getAuthorizingUserId, isGuildIntegration, isUserIntegration
-
Constructor Details
-
IntegrationOwnersImpl
-
-
Method Details
-
getAuthorizingUserIdLong
public long getAuthorizingUserIdLong()Description copied from interface:IntegrationOwners
When the interaction has theUSER_INSTALL
integration type, returns theUserSnowflake
which first authorized this interaction, or0
otherwise.- Specified by:
getAuthorizingUserIdLong
in interfaceIntegrationOwners
- Returns:
- the
UserSnowflake
which triggered the interaction, or0
for non-user-installable commands
-
getAuthorizingGuildIdLong
Description copied from interface:IntegrationOwners
When the interaction has theGUILD_INSTALL
integration type, returns theGuild
ID which first authorized this interaction, or0
if the interaction is used in the app's bot DMs, returnsnull
otherwise.- Specified by:
getAuthorizingGuildIdLong
in interfaceIntegrationOwners
- Returns:
- the guild ID in which the interaction is triggered in, or
0
for Bot DMs, ornull
for non-guild-installable commands
-
toString
-