2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 06:05:22 +00:00

Use caption in substom

This commit is contained in:
Wojciech Pawlik
2020-05-26 13:29:57 +02:00
parent 624c74060a
commit 959bef339d

View File

@@ -9,6 +9,7 @@ export const substom = (reason: string): Promise<string> =>
role: { $ne: "master" },
type: "copy",
});
if (!command) return match;
return command.content.text + " ";
const text = command?.content.text || command?.content.caption;
if (!text) return match;
return text + " ";
});