diff --git a/src/components/CollapseDemo.vue b/src/components/CollapseDemo.vue new file mode 100644 index 0000000..f1f4137 --- /dev/null +++ b/src/components/CollapseDemo.vue @@ -0,0 +1,51 @@ + + + \ No newline at end of file diff --git a/src/utils/CodeHighlignt.ts b/src/utils/CodeHighlignt.ts new file mode 100644 index 0000000..c20d031 --- /dev/null +++ b/src/utils/CodeHighlignt.ts @@ -0,0 +1,45 @@ +export const event = ` +import { Event, BaseEvent } from '@discord-factory/core' +import { GuildMember } from 'discord.js' + +@Event('guildMemberAdd') +export default class FooEvent implements BaseEvent { + public async run(member: GuildMember): Promise { + // Your code here + } +} +` + +export const command = ` +import { BaseCommand, Command } from '@discord-factory/core' +import { Message } from 'discord.js' + +@Command({ + label: 'MyCommand', + description: 'MyCommand description', + tag: 'mycommand' +}) +export default class FooCommand implements BaseCommand { + public async run(message: Message, args: string[]): Promise { + // Your code here + } +}` + +export const slashCommand = ` +import { BaseSlashCommand, SlashCommand } from '@discord-factory/core' +import { Message, CommandInteraction } from 'discord.js' + +@SlashCommand({ +scope: ['guild id'], // or 'GLOBAL' +roles: ['role id'], + options: { + name: 'send-ticket', + description: 'SendEmbed ticket description', + options: [], + }, +}) +export default class FooSlashCommand implements BaseSlashCommand { + public async run(interaction: CommandInteraction): Promise { + // Your code here + } +}` \ No newline at end of file