Search in sources :

Example 1 with JDAMessageCommand

use of com.freya02.botcommands.api.application.context.annotations.JDAMessageCommand in project BotCommands by freya022.

the class ContextQuote method execute.

@JDAMessageCommand(name = "Quote message")
public void execute(GuildMessageEvent event) {
    final Message targetMessage = event.getTarget();
    event.reply("> " + targetMessage.getContentRaw()).queue();
}
Also used : Message(net.dv8tion.jda.api.entities.Message) JDAMessageCommand(com.freya02.botcommands.api.application.context.annotations.JDAMessageCommand)

Aggregations

JDAMessageCommand (com.freya02.botcommands.api.application.context.annotations.JDAMessageCommand)1 Message (net.dv8tion.jda.api.entities.Message)1