Skip to content

Commit

Permalink
docs: add a slash commands example first
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey committed Jul 3, 2021
1 parent fa5ee15 commit 82138cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/client/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,17 @@ class Client extends BaseClient {
* @returns {string}
* @example
* const link = client.generateInvite({
* scopes: ['applications.commands'],
* });
* console.log(`Generated application invite link: ${link}`);
* @example
* const link = client.generateInvite({
* permissions: [
* Permissions.FLAGS.SEND_MESSAGES,
* Permissions.FLAGS.MANAGE_GUILD,
* Permissions.FLAGS.MENTION_EVERYONE,
* ],
* scope: ['bot'],
* scopes: ['bot'],
* });
* console.log(`Generated bot invite link: ${link}`);
*/
Expand Down

0 comments on commit 82138cb

Please sign in to comment.