Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cm-ayf committed Aug 31, 2021
1 parent adb6e56 commit af868d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ client.on('messageCreate', msg => {
if (ids[0] != msg.guild.id) {
msg.reply(`\`${msgurl}\`\nis not from this server. I could not expand it.`)
.catch(e => console.error(e));
continue;
return;
}

let cnl = await msg.guild.channels.fetch(ids[1]);
if (!cnl.manageable) {
msg.reply(`I didn't have permission to see \n\`${msgurl}\`.\nI could not expand it.`)
.catch(e => console.error(e));
continue;
return;
}

let target = await cnl.messages.fetch(ids[2]);
Expand Down

0 comments on commit af868d4

Please sign in to comment.