2024-06-24 13:56:01 +01:00
|
|
|
package cc.fascinated.bat.command;
|
|
|
|
|
2024-06-25 11:55:26 +01:00
|
|
|
import cc.fascinated.bat.model.BatGuild;
|
|
|
|
import cc.fascinated.bat.model.BatUser;
|
2024-06-24 13:56:01 +01:00
|
|
|
import lombok.NonNull;
|
|
|
|
import net.dv8tion.jda.api.entities.Member;
|
|
|
|
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
|
|
|
import net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Fascinated (fascinated7)
|
|
|
|
*/
|
|
|
|
public interface BatCommandExecutor {
|
|
|
|
/**
|
|
|
|
* Executes the command using a slash command interaction.
|
|
|
|
*
|
2024-06-26 00:31:16 +01:00
|
|
|
* @param guild the bat guild the command was executed in (null if the command was executed in a DM)
|
2024-06-24 13:56:01 +01:00
|
|
|
* @param user the bat user that executed the command
|
|
|
|
* @param channel the channel the command was executed in
|
|
|
|
* @param member the member that executed the command
|
|
|
|
* @param interaction the slash command interaction
|
|
|
|
*/
|
|
|
|
default void execute(
|
2024-06-26 00:31:16 +01:00
|
|
|
BatGuild guild,
|
2024-06-24 13:56:01 +01:00
|
|
|
@NonNull BatUser user,
|
|
|
|
@NonNull TextChannel channel,
|
|
|
|
@NonNull Member member,
|
2024-06-24 17:42:57 +01:00
|
|
|
@NonNull SlashCommandInteraction interaction
|
2024-06-24 13:56:01 +01:00
|
|
|
) {}
|
|
|
|
}
|