We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 057cdad commit dfa1d5cCopy full SHA for dfa1d5c
1 file changed
src/commands/instagram.ts
@@ -53,9 +53,14 @@ export default class InstagramLink implements SpecialCommand {
53
return;
54
}
55
56
+ const urisToProcess = uris.filter(uri => !content.includes("<" + uri + ">"));
57
+ if (urisToProcess.length === 0) {
58
+ return;
59
+ }
60
+
61
await message.channel.sendTyping();
62
- for (const postUri of uris) {
63
+ for (const postUri of urisToProcess) {
64
const result = await instagramService.downloadInstagramContent(context, postUri);
65
if (!result.success) {
66
const failureReaction = message.guild?.emojis.cache.find(e => e.name === "sadge");
0 commit comments