Skip to content

Commit 47d5911

Browse files
committed
fix: update default JS templates to use new LoaderContext in doc comments
1 parent 0fac26c commit 47d5911

12 files changed

+93
-93
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
"tslib": "^2.6.2"
4545
},
4646
"devDependencies": {
47-
"@commitlint/cli": "^18.4.1",
48-
"@commitlint/config-conventional": "^18.4.0",
49-
"@favware/cliff-jumper": "^2.2.1",
47+
"@commitlint/cli": "^18.4.2",
48+
"@commitlint/config-conventional": "^18.4.2",
49+
"@favware/cliff-jumper": "^2.2.3",
5050
"@favware/npm-deprecate": "^1.0.7",
5151
"@sapphire/decorators": "*",
5252
"@sapphire/eslint-config": "^5.0.2",
@@ -55,7 +55,7 @@
5555
"@sapphire/prettier-config": "^2.0.0",
5656
"@sapphire/ts-config": "^5.0.0",
5757
"@types/js-yaml": "^4.0.9",
58-
"@types/node": "^20.9.0",
58+
"@types/node": "^20.9.1",
5959
"@types/prompts": "^2.4.8",
6060
"@typescript-eslint/eslint-plugin": "^6.11.0",
6161
"@typescript-eslint/parser": "^6.11.0",

templates/components/argument.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { Argument } = require('@sapphire/framework');
44

55
class UserArgument extends Argument {
66
/**
7-
* @param {Argument.Context} context
7+
* @param {Argument.LoaderContext} context
88
*/
99
constructor(context) {
1010
super(context, {

templates/components/autocompleteinteractionhandler.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame
55

66
class AutocompleteHandler extends InteractionHandler {
77
/**
8-
* @param {InteractionHandler.Context} context
8+
* @param {InteractionHandler.LoaderContext} context
99
* @param {InteractionHandler.Options} options
1010
*/
1111
constructor(context, options) {

templates/components/buttoninteractionhandler.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame
44

55
class ButtonHandler extends InteractionHandler {
66
/**
7-
* @param {InteractionHandler.Context} context
7+
* @param {InteractionHandler.LoaderContext} context
88
* @param {InteractionHandler.Options} options
99
*/
1010
constructor(context, options) {

templates/components/contextmenucommand.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { ApplicationCommandType } = require('discord.js');
55

66
class UserCommand extends Command {
77
/**
8-
* @param {Command.Context} context
8+
* @param {Command.LoaderContext} context
99
*/
1010
constructor(context) {
1111
super(context, {

templates/components/listener.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { Listener } = require('@sapphire/framework');
44

55
class UserEvent extends Listener {
66
/**
7-
* @param {Listener.Context} context
7+
* @param {Listener.LoaderContext} context
88
*/
99
constructor(context) {
1010
super(context, {

templates/components/messagecommand.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { Command } = require('@sapphire/framework');
44

55
class UserCommand extends Command {
66
/**
7-
* @param {Command.Context} context
7+
* @param {Command.LoaderContext} context
88
*/
99
constructor(context) {
1010
super(context, {

templates/components/modalinteractionhandler.js.sapphire

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame
44

55
class ModalHandler extends InteractionHandler {
66
/**
7-
* @param {InteractionHandler.Context} context
7+
* @param {InteractionHandler.LoaderContext} context
88
* @param {InteractionHandler.Options} options
99
*/
1010
constructor(context, options) {
@@ -29,7 +29,7 @@ class ModalHandler extends InteractionHandler {
2929
*/
3030
parse(interaction) {
3131
if (interaction.customId !== 'hello-popup') return this.none();
32-
32+
3333
return this.some();
3434
}
3535
}

templates/components/route.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { methods, Route } = require('@sapphire/plugin-api');
44

55
class UserRoute extends Route {
66
/**
7-
* @param {Route.Context} context
7+
* @param {Route.LoaderContext} context
88
* @param {Route.Options} options
99
*/
1010
constructor(context, options) {

templates/components/selectmenuinteractionhandler.js.sapphire

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame
44

55
class MenuHandler extends InteractionHandler {
66
/**
7-
* @param {InteractionHandler.Context} context
7+
* @param {InteractionHandler.LoaderContext} context
88
* @param {InteractionHandler.Options} options
99
*/
1010
constructor(context, options) {

0 commit comments

Comments
 (0)