All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.freya02.botcommands.api.commands.application.annotations.AppDeclaration Maven / Gradle / Ivy

package com.freya02.botcommands.api.commands.application.annotations;

import com.freya02.botcommands.api.commands.annotations.Command;
import com.freya02.botcommands.api.commands.application.GlobalApplicationCommandManager;
import com.freya02.botcommands.api.commands.application.GuildApplicationCommandManager;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks a function as one which declares commands, you can make your application commands in this function
 * 
The first argument needs to be a {@link GuildApplicationCommandManager} or a {@link GlobalApplicationCommandManager} *

* Note: The function may be called more than once, for example, if the bot needs to update its commands, or if it joins a guild. * *

Requirement: The declaring class must be annotated with {@link Command}. * * @see Command */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface AppDeclaration {}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy