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:
@@ -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 + " ";
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user