Bat/src/main/java/cc/fascinated/bat/command/BatCommandExecutor.java

31 lines
1.0 KiB
Java
Raw Normal View History

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;
2024-06-26 00:41:47 +01:00
import net.dv8tion.jda.api.entities.channel.middleman.MessageChannel;
2024-06-24 13:56:01 +01:00
import net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction;
/**
* @author Fascinated (fascinated7)
*/
public interface BatCommandExecutor {
/**
* Executes the command using a slash command interaction.
*
* @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(
BatGuild guild,
2024-06-24 13:56:01 +01:00
@NonNull BatUser user,
2024-06-26 00:41:47 +01:00
@NonNull MessageChannel channel,
Member member,
@NonNull SlashCommandInteraction interaction
2024-06-24 13:56:01 +01:00
) {}
}