Fix DM API token retrieval

This commit is contained in:
Lea 2023-04-07 22:16:57 +02:00
parent 9acc3c6414
commit afb289b65a
Signed by: Lea
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 // Don't need to risk exposing the user to the token, so we'll send it in the nonce
await message.channel.sendMessage({ await message.channel.sendMessage({
content: 'Token request granted.', content: `Token request granted. **Do not send the content of this message to anyone!**\n$%${token}%$`,
nonce: `${ulid()}; TOKEN:${token}`,
replies: [ { id: message._id, mention: false } ], replies: [ { id: message._id, mention: false } ],
}); });
return; return;