We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c8e1d8 commit 3c0b9f2Copy full SHA for 3c0b9f2
Ep_14/commands/info/instagram.js
@@ -18,9 +18,12 @@ module.exports = {
18
}
19
20
const url = `https://instagram.com/${name}/?__a=1`;
21
- const res = await fetch(url).then(url => url.json());
+
22
+ let res;
23
- if (!res.graphql.user.username) {
24
+ try {
25
+ await fetch(url).then(url => url.json());
26
+ } catch (e) {
27
return message.reply("I couldn't find that account... :(")
28
.then(m => m.delete(5000));
29
0 commit comments