Class JavacordServerSender

    • Constructor Detail

      • JavacordServerSender

        public JavacordServerSender​(@NonNull org.javacord.api.event.message.MessageCreateEvent event)
        Commandsender used for commands executed on a Server
        Parameters:
        event - The event which triggered the command
    • Method Detail

      • getServerChannel

        public @NonNull org.javacord.api.entity.channel.ServerChannel getServerChannel()
        Gets the server channel the command was executed in
        Returns:
        The server channel
      • getServer

        public @NonNull org.javacord.api.entity.server.Server getServer()
        Gets the server the command was executed in
        Returns:
        The server