Class CommandActionEvent

    • Constructor Detail

      • CommandActionEvent

        public CommandActionEvent​(Command command,
                                  org.javacord.api.entity.user.User sender,
                                  CommandResponder responder,
                                  org.javacord.api.entity.channel.TextChannel channel,
                                  ArgumentResult[] arguments)
    • Method Detail

      • getChannel

        public java.util.Optional<org.javacord.api.entity.channel.TextChannel> getChannel()
        Gets the channel where the action has been happened
        Returns:
        an Optional.empty() when the action happened in private message, otherwise an Optional.of(Object) with the channel