chore: new example
This commit is contained in:
12
examples/AuthorizeUserApps.js
Normal file
12
examples/AuthorizeUserApps.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const Discord = require('../src/index');
|
||||||
|
|
||||||
|
const client = new Discord.Client();
|
||||||
|
|
||||||
|
client.on('ready', async () => {
|
||||||
|
console.log('Ready!', client.user.tag);
|
||||||
|
await client.installUserApps('936929561302675456'); // Midjourney
|
||||||
|
});
|
||||||
|
|
||||||
|
client.login('token');
|
||||||
Reference in New Issue
Block a user