Class JavacordServerSender
- java.lang.Object
-
- cloud.commandframework.javacord.sender.JavacordCommandSender
-
- cloud.commandframework.javacord.sender.JavacordServerSender
-
public class JavacordServerSender extends JavacordCommandSender
-
-
Constructor Summary
Constructors Constructor Description JavacordServerSender(@NonNull org.javacord.api.event.message.MessageCreateEvent event)
Commandsender used for commands executed on aServer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull org.javacord.api.entity.server.Server
getServer()
Gets the server the command was executed in@NonNull org.javacord.api.entity.channel.ServerChannel
getServerChannel()
Gets the server channel the command was executed in-
Methods inherited from class cloud.commandframework.javacord.sender.JavacordCommandSender
getAuthor, getEvent, getMessage, getTextChannel, sendErrorMessage, sendMessage, sendSuccessMessage
-
-
-
-
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
-
-