aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/dm.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/dev/dm.ts')
-rw-r--r--src/commands/dev/dm.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/dev/dm.ts b/src/commands/dev/dm.ts
index 5031dfd..4133b96 100644
--- a/src/commands/dev/dm.ts
+++ b/src/commands/dev/dm.ts
@@ -1,4 +1,4 @@
-import { BushCommand, BushUser, type BushMessage, type BushSlashMessage } from '#lib';
+import { ArgType, BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
export default class DMCommand extends BushCommand {
public constructor() {
@@ -11,7 +11,7 @@ export default class DMCommand extends BushCommand {
args: [
{
id: 'user',
- type: 'string',
+ type: 'user',
description: 'The user to send the dm to.',
prompt: 'Who would you like to dm?',
retry: '{error} Pick a valid user to send a dm to.',
@@ -20,6 +20,7 @@ export default class DMCommand extends BushCommand {
{
id: 'content',
type: 'string',
+ match: 'rest',
description: 'This is the second argument.',
prompt: 'What would you like to set your second argument to be?',
retry: '{error} Pick a valid argument.',
@@ -34,7 +35,7 @@ export default class DMCommand extends BushCommand {
userPermissions: []
});
}
- public override async exec(message: BushMessage | BushSlashMessage, args: { user: BushUser; content: string }) {
+ public override async exec(message: BushMessage | BushSlashMessage, args: { user: ArgType<'user'>; content: string }) {
try {
const u = await client.users.fetch(args.user.id);
await u.send(args.content);