Skip to content

Commit 41bcc9b

Browse files
authoredNov 16, 2023
feat: make all pieces virtual (#686)
* feat: make all pieces virtual * fix: register optional command registries correctly * chore: update /pieces
1 parent d310a8a commit 41bcc9b

File tree

73 files changed

+498
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+498
-60
lines changed
 

‎src/arguments/CoreBoolean.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PieceContext } from '@sapphire/pieces';
1+
import { container, type PieceContext } from '@sapphire/pieces';
22
import { resolveBoolean } from '../lib/resolvers/boolean';
33
import { Argument } from '../lib/structures/Argument';
44
import type { BooleanArgumentContext } from '../lib/types/ArgumentContexts';
@@ -20,3 +20,9 @@ export class CoreArgument extends Argument<boolean> {
2020
);
2121
}
2222
}
23+
24+
void container.stores.loadPiece({
25+
name: 'boolean',
26+
piece: CoreArgument,
27+
store: 'arguments'
28+
});

‎src/arguments/CoreChannel.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ChannelTypes } from '@sapphire/discord.js-utilities';
2-
import type { PieceContext } from '@sapphire/pieces';
2+
import { container, type PieceContext } from '@sapphire/pieces';
33
import { resolveChannel } from '../lib/resolvers/channel';
44
import { Argument } from '../lib/structures/Argument';
55

@@ -20,3 +20,9 @@ export class CoreArgument extends Argument<ChannelTypes> {
2020
);
2121
}
2222
}
23+
24+
void container.stores.loadPiece({
25+
name: 'channel',
26+
piece: CoreArgument,
27+
store: 'arguments'
28+
});

0 commit comments

Comments
 (0)
Please sign in to comment.