Class YSlashCommandInteractionEvent
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.events.YSlashCommandInteractionEvent
@Author(firstName="Yusuf",
lastName="Arfan Ismail",
githubUserName="RealYusufIsmail")
public class YSlashCommandInteractionEvent
extends YCommandInteraction
-
Constructor Summary
ConstructorsConstructorDescriptionYSlashCommandInteractionEvent(SlashCommand command, net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event) -
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.entities.MessageChannelThe channel this interaction happened in.@NotNull Player@NotNull TrackScheduler@NotNull AudioPlayerSendHandlervoidvoidMethods inherited from class io.github.yusufsdiscordbot.yusufsdiscordcore.bot.interaction.YCommandInteractionPayload
getChannelType, getCommandId, getCommandIdLong, getCommandInteractionPayload, getCommandPath, getCommandString, getCommandType, getGuild, getGuildChannel, 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
-
YSlashCommandInteractionEvent
public YSlashCommandInteractionEvent(SlashCommand command, net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event)
-
-
Method Details
-
getInteraction
-
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
-
getPlayer
-
getScheduler
-
getSchedulerHandler
-
playUrl
-
playName
-