Fix DM API token retrieval
This commit is contained in:
parent
9acc3c6414
commit
afb289b65a
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue