Class GenericApplicationCommandEvent

    • Constructor Detail

      • GenericApplicationCommandEvent

        public GenericApplicationCommandEvent​(@Nonnull
                                              JDA api,
                                              long responseNumber,
                                              @Nonnull
                                              Command command,
                                              @Nullable
                                              Guild guild)
    • Method Detail

      • getCommand

        @Nonnull
        public Command getCommand()
        The affected command and its new data.
        Returns:
        The Command
      • getGuild

        @Nullable
        public Guild getGuild()
        The relevant guild for this command, unless its global.
        Returns:
        The Guild, or null for global commands