aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/messageLink.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/arguments/messageLink.ts')
-rw-r--r--src/arguments/messageLink.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arguments/messageLink.ts b/src/arguments/messageLink.ts
index d270abd..80aacde 100644
--- a/src/arguments/messageLink.ts
+++ b/src/arguments/messageLink.ts
@@ -1,6 +1,7 @@
+import { Message } from 'discord.js';
import { type BushArgumentTypeCaster } from '../lib';
-export const messageLink: BushArgumentTypeCaster = async (_, phrase) => {
+export const messageLink: BushArgumentTypeCaster<Promise<Message | null>> = async (_, phrase) => {
const match = client.consts.regex.messageLink.exec(phrase);
if (!match || !match.groups) return null;