underctrl-io / commandkit

Only focus on what matters - Let CommandKit handle your commands and events in your Discord.js projects!
https://commandkit.js.org
MIT License
82 stars 9 forks source link

Update missing permission message #25

Closed notunderctrl closed 8 months ago

notunderctrl commented 8 months ago

This PR updates the message displayed to users in case there's any missing permissions (both user and the bot):

Breaking changes:

Options preview:

import type { CommandOptions } from 'commandkit';

export const options: CommandOptions = {
    botPermissions: ['Administrator', 'SendTTSMessages', 'BanMembers'],
    userPermissions: ['BanMembers', 'ChangeNickname', 'ManageGuild'],
};

Feature preview: image

netlify[bot] commented 8 months ago

Deploy Preview for commandkit ready!

Name Link
Latest commit a87397b3743ea7ee96a9d01ee18c7074a29b615b
Latest deploy log https://app.netlify.com/sites/commandkit/deploys/655112c33e27a80008b639d3
Deploy Preview https://deploy-preview-25--commandkit.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.