Class YSlashCommandInteraction
java.lang.Object
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.interaction.YReplyCallback
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.interaction.YCommandInteractionPayload
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.interaction.YCommandInteraction
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.interaction.YSlashCommandInteraction
-
Constructor Summary
ConstructorsConstructorDescriptionYSlashCommandInteraction(net.dv8tion.jda.api.interactions.callbacks.IReplyCallback callback, net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload commandInteractionPayload, net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction slashCommandInteraction) -
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.entities.MessageChannelThe channel this interaction happened in.net.dv8tion.jda.api.entities.GuildMessageChannelTheGuildChannelthis interaction happened in.@NotNull YSlashCommandInteractionMethods inherited from class io.github.yusufsdiscordbot.yusufsdiscordcore.bot.interaction.YCommandInteractionPayload
getChannelType, getCommandId, getCommandIdLong, getCommandInteractionPayload, getCommandPath, getCommandString, getCommandType, getGuild, getGuildLocale, getId, getIdLong, getJDA, getMember, getMessageChannel, getName, getNewsChannel, getOption, getOption, getOption, getOption, getOptions, getOptionsByName, getOptionsByType, getPrivateChannel, getSubcommandGroup, getSubcommandName, getTextChannel, getThreadChannel, getTimeCreated, getToken, getType, getTypeRaw, getUser, getUserLocale, getVoiceChannel, isAcknowledged, isFromGuildMethods inherited from class io.github.yusufsdiscordbot.yusufsdiscordcore.bot.interaction.YReplyCallback
deferReply, deferReply, getCallback, getHook, reply, reply, replyEmbeds, replyEmbeds, replyFile, replyFile, replyFile, replyFile, replyFormat, replyQueuedEmbed, replyQueuedEphemeral, replyQueuedEphemeralEmbed, replyQueuedMessage
-
Constructor Details
-
YSlashCommandInteraction
public YSlashCommandInteraction(net.dv8tion.jda.api.interactions.callbacks.IReplyCallback callback, net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload commandInteractionPayload, net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction slashCommandInteraction)
-
-
Method Details
-
getChannel
@Nonnull public net.dv8tion.jda.api.entities.MessageChannel getChannel()Description copied from class:YCommandInteractionPayloadThe channel this interaction happened in.
This is currently never null, but might be nullable in the future.- Overrides:
getChannelin classYCommandInteractionPayload- Returns:
- The channel or null if this interaction is not from a channel context
-
getGuildChannel
@Nonnull public net.dv8tion.jda.api.entities.GuildMessageChannel getGuildChannel()Description copied from class:YCommandInteractionPayloadTheGuildChannelthis interaction happened in.
IfYCommandInteractionPayload.getChannelType()is not a guild type, this throwsIllegalStateException!- Overrides:
getGuildChannelin classYCommandInteractionPayload- Returns:
- The
GuildChannel
-
getInteraction
-