Class TanzmusikAISlashCommand
java.lang.Object
de.klassenserver7b.k7bot.commands.slash.TanzmusikAISlashCommand
- All Implemented Interfaces:
SlashCommand, TopLevelSlashCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyzeSong(File songFile) protected FiledownloadAttachment(net.dv8tion.jda.api.entities.Message.Attachment attachment) @NotNull net.dv8tion.jda.api.interactions.commands.build.SlashCommandDatavoidperformSlashCommand(net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction event) protected voidsendErrorEmbed(net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction event, String description, String title)
-
Field Details
-
tempdir
-
log
private final org.slf4j.Logger log
-
-
Constructor Details
-
TanzmusikAISlashCommand
public TanzmusikAISlashCommand()
-
-
Method Details
-
performSlashCommand
public void performSlashCommand(net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction event) - Specified by:
performSlashCommandin interfaceSlashCommand- Parameters:
event-
-
downloadAttachment
protected File downloadAttachment(net.dv8tion.jda.api.entities.Message.Attachment attachment) throws IOException, ExecutionException, InterruptedException -
analyzeSong
- Throws:
IOExceptionInterruptedException
-
sendErrorEmbed
-
getCommandData
@NotNull public @NotNull net.dv8tion.jda.api.interactions.commands.build.SlashCommandData getCommandData()- Specified by:
getCommandDatain interfaceTopLevelSlashCommand- Returns:
-