💡 Added comments

This commit is contained in:
Axel Olausson Holtenäs 2022-10-16 14:53:32 +02:00
parent 6a5d480438
commit 3f6e926789

View file

@ -10,11 +10,13 @@ import getEmbedConfig from "../../../../helpers/getEmbedData";
import button from "./button";
import command from "./command";
// Send interactions to all available handlers
export const execute = async (interaction: BaseInteraction) => {
await button(<ButtonInteraction>interaction);
await command(<ChatInputCommandInteraction>interaction);
};
// Handle interactions from commands
export const handleCommandInteraction = async (
interaction: CommandInteraction
) => {