Class YSlashCommandInteractionEvent


@Author(firstName="Yusuf", lastName="Arfan Ismail", githubUserName="RealYusufIsmail") public class YSlashCommandInteractionEvent extends YCommandInteraction
  • Constructor Details

    • YSlashCommandInteractionEvent

      public YSlashCommandInteractionEvent(SlashCommand command, net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event)
  • Method Details

    • getInteraction

      @Nonnull public YSlashCommandInteraction getInteraction()
    • getChannel

      @Nonnull public net.dv8tion.jda.api.entities.MessageChannel getChannel()
      Description copied from class: YCommandInteractionPayload
      The channel this interaction happened in.
      This is currently never null, but might be nullable in the future.
      Overrides:
      getChannel in class YCommandInteractionPayload
      Returns:
      The channel or null if this interaction is not from a channel context
    • getPlayer

      @Nonnull @NotNull public @NotNull Player getPlayer()
    • getScheduler

      @Nonnull @NotNull public @NotNull TrackScheduler getScheduler()
    • getSchedulerHandler

      @Nonnull @NotNull public @NotNull AudioPlayerSendHandler getSchedulerHandler()
    • playUrl

      public void playUrl(@NotNull @NotNull String urlOrName)
    • playName

      public void playName(@NotNull @NotNull String urlOrName)