mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
Fix DM API token retrieval
This commit is contained in:
parent
9acc3c6414
commit
afb289b65a
|
@ -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