2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-09-01 14:45:27 +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" }, role: { $ne: "master" },
type: "copy", type: "copy",
}); });
if (!command) return match; const text = command?.content.text || command?.content.caption;
return command.content.text + " "; if (!text) return match;
return text + " ";
}); });