We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b46c3b commit c02ce5bCopy full SHA for c02ce5b
1 file changed
src/commands/tiktok.ts
@@ -28,6 +28,11 @@ export default class TikTokLink implements SpecialCommand {
28
content: `https://kktiktok.com/${match[1]}`,
29
allowedMentions: { repliedUser: false },
30
});
31
- await Promise.all([message.suppressEmbeds(true), reply.suppressEmbeds(true)]);
+
32
+ if (reply.embeds.length > 0) {
33
+ await message.suppressEmbeds(true);
34
+ } else {
35
+ await reply.delete();
36
+ }
37
}
38
0 commit comments