Skip to content

Commit

Permalink
chore: update @sapphire/pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSegal855 committed Nov 27, 2023
1 parent 4e335a7 commit 6556e31
Show file tree
Hide file tree
Showing 5 changed files with 609 additions and 570 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@sapphire/discord.js-utilities": "7.0.2",
"@sapphire/fetch": "2.4.1",
"@sapphire/framework": "^4.7.2",
"@sapphire/pieces": "3.7.0",
"@sapphire/pieces": "3.10.0",
"@sapphire/plugin-editable-commands": "3.0.3",
"@sapphire/plugin-logger": "3.0.6",
"@sapphire/plugin-subcommands": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/extensions/SteveCommand.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Command, type CommandOptions, type PieceContext } from '@sapphire/framework';
import { Command, type CommandOptions } from '@sapphire/framework';
import { PermissionsBitField } from 'discord.js';

export abstract class SteveCommand extends Command {

public constructor(context: PieceContext, options: CommandOptions) {
public constructor(context: Command.LoaderContext, options: CommandOptions) {
super(context, {
...options,
requiredClientPermissions: options.requiredClientPermissions
Expand Down
4 changes: 2 additions & 2 deletions src/lib/extensions/SteveSubcommand.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PieceContext } from '@sapphire/framework';
import type { Command } from '@sapphire/framework';
import { Subcommand, type SubcommandOptions } from '@sapphire/plugin-subcommands';
import { send } from '@sapphire/plugin-editable-commands';
import { Message, PermissionsBitField } from 'discord.js';
Expand All @@ -7,7 +7,7 @@ export abstract class SteveSubcommand extends Subcommand {

private cmdNames: string[];

public constructor(context: PieceContext, options: SubcommandOptions) {
public constructor(context: Command.LoaderContext, options: SubcommandOptions) {
const needsDefault = options.subcommands?.every(subcommand =>
subcommand.type === 'method' || subcommand.type === undefined
? !subcommand.default
Expand Down
4 changes: 2 additions & 2 deletions src/listeners/ready.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Octokit } from '@octokit/rest';
import { Listener, type ListenerOptions, type PieceContext, Store } from '@sapphire/framework';
import { Listener, type ListenerOptions, Store } from '@sapphire/framework';
import { blue, gray, green, magenta, magentaBright, white, yellow } from 'colorette';
import { Collection, WebhookClient } from 'discord.js';
import { readFileSync } from 'fs';
Expand All @@ -10,7 +10,7 @@ export class UserEvent extends Listener {

private readonly style = dev ? yellow : blue;

public constructor(context: PieceContext, options?: ListenerOptions) {
public constructor(context: Listener.LoaderContext, options?: ListenerOptions) {
super(context, {
...options,
once: true
Expand Down
Loading

0 comments on commit 6556e31

Please sign in to comment.