Search in sources :

Example 1 with JDAUserCommand

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

the class ContextAvatar method execute.

@JDAUserCommand(name = "Get avatar")
public void execute(GuildUserEvent event) {
    final User targetUser = event.getTarget();
    event.reply(targetUser.getEffectiveAvatarUrl()).queue();
}
Also used : User(net.dv8tion.jda.api.entities.User) JDAUserCommand(com.freya02.botcommands.api.application.context.annotations.JDAUserCommand)

Aggregations

JDAUserCommand (com.freya02.botcommands.api.application.context.annotations.JDAUserCommand)1 User (net.dv8tion.jda.api.entities.User)1