Skip to content

Commit

Permalink
fix: update default JS templates to use new LoaderContext in doc co…
Browse files Browse the repository at this point in the history
…mments
  • Loading branch information
favna committed Nov 16, 2023
1 parent 0fac26c commit 47d5911
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 93 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@commitlint/cli": "^18.4.1",
"@commitlint/config-conventional": "^18.4.0",
"@favware/cliff-jumper": "^2.2.1",
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@favware/cliff-jumper": "^2.2.3",
"@favware/npm-deprecate": "^1.0.7",
"@sapphire/decorators": "*",
"@sapphire/eslint-config": "^5.0.2",
Expand All @@ -55,7 +55,7 @@
"@sapphire/prettier-config": "^2.0.0",
"@sapphire/ts-config": "^5.0.0",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.9.0",
"@types/node": "^20.9.1",
"@types/prompts": "^2.4.8",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/components/argument.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { Argument } = require('@sapphire/framework');

class UserArgument extends Argument {
/**
* @param {Argument.Context} context
* @param {Argument.LoaderContext} context
*/
constructor(context) {
super(context, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame

class AutocompleteHandler extends InteractionHandler {
/**
* @param {InteractionHandler.Context} context
* @param {InteractionHandler.LoaderContext} context
* @param {InteractionHandler.Options} options
*/
constructor(context, options) {
Expand Down
2 changes: 1 addition & 1 deletion templates/components/buttoninteractionhandler.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame

class ButtonHandler extends InteractionHandler {
/**
* @param {InteractionHandler.Context} context
* @param {InteractionHandler.LoaderContext} context
* @param {InteractionHandler.Options} options
*/
constructor(context, options) {
Expand Down
2 changes: 1 addition & 1 deletion templates/components/contextmenucommand.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { ApplicationCommandType } = require('discord.js');

class UserCommand extends Command {
/**
* @param {Command.Context} context
* @param {Command.LoaderContext} context
*/
constructor(context) {
super(context, {
Expand Down
2 changes: 1 addition & 1 deletion templates/components/listener.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { Listener } = require('@sapphire/framework');

class UserEvent extends Listener {
/**
* @param {Listener.Context} context
* @param {Listener.LoaderContext} context
*/
constructor(context) {
super(context, {
Expand Down
2 changes: 1 addition & 1 deletion templates/components/messagecommand.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { Command } = require('@sapphire/framework');

class UserCommand extends Command {
/**
* @param {Command.Context} context
* @param {Command.LoaderContext} context
*/
constructor(context) {
super(context, {
Expand Down
4 changes: 2 additions & 2 deletions templates/components/modalinteractionhandler.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame

class ModalHandler extends InteractionHandler {
/**
* @param {InteractionHandler.Context} context
* @param {InteractionHandler.LoaderContext} context
* @param {InteractionHandler.Options} options
*/
constructor(context, options) {
Expand All @@ -29,7 +29,7 @@ class ModalHandler extends InteractionHandler {
*/
parse(interaction) {
if (interaction.customId !== 'hello-popup') return this.none();

return this.some();
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/components/route.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { methods, Route } = require('@sapphire/plugin-api');

class UserRoute extends Route {
/**
* @param {Route.Context} context
* @param {Route.LoaderContext} context
* @param {Route.Options} options
*/
constructor(context, options) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { InteractionHandler, InteractionHandlerTypes } = require('@sapphire/frame

class MenuHandler extends InteractionHandler {
/**
* @param {InteractionHandler.Context} context
* @param {InteractionHandler.LoaderContext} context
* @param {InteractionHandler.Options} options
*/
constructor(context, options) {
Expand Down
2 changes: 1 addition & 1 deletion templates/components/slashcommand.js.sapphire
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { Command } = require('@sapphire/framework')

class UserCommand extends Command {
/**
* @param {Command.Context} context
* @param {Command.LoaderContext} context
*/
constructor(context) {
super(context, {
Expand Down
Loading

0 comments on commit 47d5911

Please sign in to comment.