Fix DM API token retrieval

This commit is contained in:
Lea 2023-04-07 22:16:57 +02:00
parent 9acc3c6414
commit afb289b65a
No known key found for this signature in database
GPG key ID: 1BAFFE8347019C42

View file

@ -106,8 +106,7 @@ client.on('message', async message => {
// Don't need to risk exposing the user to the token, so we'll send it in the nonce
await message.channel.sendMessage({
content: 'Token request granted.',
nonce: `${ulid()}; TOKEN:${token}`,
content: `Token request granted. **Do not send the content of this message to anyone!**\n$%${token}%$`,
replies: [ { id: message._id, mention: false } ],
});
return;