From 2c48240443771105b208cb9f14c8789e99966e22 Mon Sep 17 00:00:00 2001 From: Alliana <56180684+Allianaab2m@users.noreply.github.com> Date: Mon, 17 Jan 2022 18:22:47 +0900 Subject: [PATCH 1/3] fix: Generated command comportnent code has error --- templates/components/listener.ts.sapphire | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/listener.ts.sapphire b/templates/components/listener.ts.sapphire index 287b1db..a1a8326 100644 --- a/templates/components/listener.ts.sapphire +++ b/templates/components/listener.ts.sapphire @@ -1,7 +1,7 @@ { "category": "listeners" } --- import { ApplyOptions } from '@sapphire/decorators'; -import { Listener, ListenerOptions } from '@sapphire/framework'; +import type { Listener, ListenerOptions } from '@sapphire/framework'; @ApplyOptions({}) export class UserEvent extends Listener { From 39ec6466aa756dfde635526a8f6feb60437baf88 Mon Sep 17 00:00:00 2001 From: Alliana <56180684+Allianaab2m@users.noreply.github.com> Date: Mon, 17 Jan 2022 18:58:32 +0900 Subject: [PATCH 2/3] Revert "fix: Generated command comportnent code has error" This reverts commit 2c48240443771105b208cb9f14c8789e99966e22. --- templates/components/listener.ts.sapphire | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/listener.ts.sapphire b/templates/components/listener.ts.sapphire index a1a8326..287b1db 100644 --- a/templates/components/listener.ts.sapphire +++ b/templates/components/listener.ts.sapphire @@ -1,7 +1,7 @@ { "category": "listeners" } --- import { ApplyOptions } from '@sapphire/decorators'; -import type { Listener, ListenerOptions } from '@sapphire/framework'; +import { Listener, ListenerOptions } from '@sapphire/framework'; @ApplyOptions({}) export class UserEvent extends Listener { From c9c8260bd682b42ee616658dad3d205dbbd16889 Mon Sep 17 00:00:00 2001 From: Alliana <56180684+Allianaab2m@users.noreply.github.com> Date: Mon, 17 Jan 2022 18:59:15 +0900 Subject: [PATCH 3/3] fix: Generated command comportnent code has error --- templates/components/command.ts.sapphire | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/command.ts.sapphire b/templates/components/command.ts.sapphire index 8c88b2f..701941a 100644 --- a/templates/components/command.ts.sapphire +++ b/templates/components/command.ts.sapphire @@ -2,7 +2,7 @@ --- import { ApplyOptions } from '@sapphire/decorators'; import { SubCommandPluginCommand, SubCommandPluginCommandOptions } from '@sapphire/plugin-subcommands'; -import { Message } from 'discord.js'; +import type { Message } from 'discord.js'; @ApplyOptions({ description: 'A basic command'