diff --git a/foxy/src/main/kotlin/net/cakeyfox/foxy/command/vanilla/utils/declarations/PingCommand.kt b/foxy/src/main/kotlin/net/cakeyfox/foxy/command/vanilla/utils/declarations/PingCommand.kt index aa870e75..45e0b968 100644 --- a/foxy/src/main/kotlin/net/cakeyfox/foxy/command/vanilla/utils/declarations/PingCommand.kt +++ b/foxy/src/main/kotlin/net/cakeyfox/foxy/command/vanilla/utils/declarations/PingCommand.kt @@ -3,12 +3,23 @@ package net.cakeyfox.foxy.command.vanilla.utils.declarations import net.cakeyfox.foxy.command.structure.FoxyCommandDeclarationBuilder import net.cakeyfox.foxy.command.structure.FoxyCommandDeclarationWrapper import net.cakeyfox.foxy.command.vanilla.utils.PingExecutor +import net.dv8tion.jda.api.interactions.IntegrationType +import net.dv8tion.jda.api.interactions.InteractionContextType class PingCommand : FoxyCommandDeclarationWrapper { override fun create(): FoxyCommandDeclarationBuilder = command( "ping", "ping.description", + interactionContexts = listOf( + InteractionContextType.BOT_DM, + InteractionContextType.GUILD, + InteractionContextType.PRIVATE_CHANNEL + ), + integrationType = listOf( + IntegrationType.USER_INSTALL, + IntegrationType.GUILD_INSTALL + ), block = { executor = PingExecutor() }