From 17bddb306c21c01513e0f1635a271a8e01e7815f Mon Sep 17 00:00:00 2001 From: Kaname <56084970+kaname-png@users.noreply.github.com> Date: Sat, 16 Oct 2021 08:56:12 -0600 Subject: [PATCH 1/4] fix(templates): Overridden run method to runMesaage This is for the new version of sapphire in which the method name was changed to messageRun. --- 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 e1ce567..8c88b2f 100644 --- a/templates/components/command.ts.sapphire +++ b/templates/components/command.ts.sapphire @@ -8,7 +8,7 @@ import { Message } from 'discord.js'; description: 'A basic command' }) export class UserCommand extends SubCommandPluginCommand { - public async run(message: Message) { + public async messageRun(message: Message) { return message.channel.send('Hello world!'); } } From 72325ff6c91d7300935862e3b2847e3796e08a10 Mon Sep 17 00:00:00 2001 From: Kaname <56084970+kaname-png@users.noreply.github.com> Date: Sat, 16 Oct 2021 09:00:27 -0600 Subject: [PATCH 2/4] fix(templates): Overridden run method to messageRun I made a mistake in the name of the method in the previous commits, but the code is fine --- templates/components/listener.js.sapphire | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/listener.js.sapphire b/templates/components/listener.js.sapphire index 891998c..e73b736 100644 --- a/templates/components/listener.js.sapphire +++ b/templates/components/listener.js.sapphire @@ -9,7 +9,7 @@ class UserEvent extends Listener { }); } - run() {} + messageRun() {} } exports.UserEvent = UserEvent; From 48a8ce9e17d2a4a3f331e65f08c42d7afa0f81d7 Mon Sep 17 00:00:00 2001 From: Kaname <56084970+kaname-png@users.noreply.github.com> Date: Sat, 16 Oct 2021 09:01:11 -0600 Subject: [PATCH 3/4] fix: bruh... --- templates/components/listener.js.sapphire | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/listener.js.sapphire b/templates/components/listener.js.sapphire index e73b736..891998c 100644 --- a/templates/components/listener.js.sapphire +++ b/templates/components/listener.js.sapphire @@ -9,7 +9,7 @@ class UserEvent extends Listener { }); } - messageRun() {} + run() {} } exports.UserEvent = UserEvent; From 01196783af0e1ccef6425b3bbece4f57e45a48b3 Mon Sep 17 00:00:00 2001 From: Kaname <56084970+kaname-png@users.noreply.github.com> Date: Sat, 16 Oct 2021 09:02:04 -0600 Subject: [PATCH 4/4] fix(templates): Overridden run method to messageRun I made a mistake in the name of the method in the previous commits, but the code is fine --- templates/components/command.js.sapphire | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/components/command.js.sapphire b/templates/components/command.js.sapphire index 46b922d..8dce384 100644 --- a/templates/components/command.js.sapphire +++ b/templates/components/command.js.sapphire @@ -9,7 +9,7 @@ class UserCommand extends SubCommandPluginCommand { }); } - async run(message) { + async messageRun(message) { return msg.channel.send('Hello world!'); } }