Skip to content

Hey there! If you like my work, you can support me by sponsoring me on GitHub. Thanks! ❤

Sponsor me
on GitHub

JDA Types

@Arg - Use Basic Types to easily validate, parse, and get arguments!

Supported Types JDA

Argument TypeValuesExample
UserAny useruser
AttachmentAny attachmentattachment
RoleAny rolerole
IMentionableAny mentionablementionable
ChannelAny channelchannel
GuildChannelAny guild channelguildChannel
GuildChannelUnionAny guild channel unionguildChannelUnion
MemberAny membermember

Example:

java
@Execute(route = "member-arg")
public void executeMember(@Context SlashCommandInteractionEvent event, @Arg Member member) {
    // ...
}

Made by LiteDevelopers and Contributors with ❤️