Bot crashes when it cannot send a message to a user
Closed this issue · 0 comments
db0 commented
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: nonce: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: embeds: [
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: {
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: title: 'Sensational!',
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: description: '**Flameprince2293#8198** gifted you **10000** Kudos on [this message](https://discord.com/channels/7811452147
52129095/1052117449773940786/1065634785571123300).\n' +
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: 'That comment hit just right.',
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: color: 16705372
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: }
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: ],
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: components: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: username: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: avatar_url: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: allowed_mentions: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: flags: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: message_reference: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: attachments: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: sticker_ids: undefined,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: thread_name: undefined
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: }
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: },
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: rawError: { message: 'Cannot send messages to this user', code: 50007 },
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: code: 50007,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: status: 403,
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: method: 'POST',
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: url: 'https://discord.com/api/v10/channels/1062995953059119155/messages'
Jan 19 20:46:11 vmi1011449.contaboserver.net npm[176193]: }
Jan 19 20:46:11 vmi1011449.contaboserver.net systemd[4026426]: discord_bot.service: Main process exited, code=exited, status=1/FAILURE