Client Permissions
It's a good pratice to check if your bot has the required permissions for executing.
Discapp provides a quick way of doing this.
CreateChannelCommand
#
Improving the In the Guild-only Command chapter chapter we have built the CreateChannelCommand
, this command creates a channel, but creating a channel requires that the client have the 'MANAGE_CHANNELS' permission.
path/to/your/app/src/Commands/MakeChannel.ts
By adding this Discapp will ensure your bot have the permission for creating a channel before executing.