Skip to content

Commit bc06a0d

Browse files
committed
feat: version v3.1.1
Full changelog can be found in CHANGELOG.md
1 parent 8bef15e commit bc06a0d

File tree

67 files changed

+1392
-26429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1392
-26429
lines changed

.github/workflows/build-docs.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This changelog contains mostly API-Changes and changes for developers.
44

5+
## v3.1.1
6+
* Discord released their new way of editing slash-command-permissions ([read their blog](https://discord.com/blog/slash-commands-permissions-discord-apps-bots)), which made a lot of features basiclly usless:
7+
* Commands can now only set a `defaultPermission` value
8+
* Commands can not set a `permission` field anymore, as it can't be synced with Discord's API
9+
* Removed the `arrayToApplicationCommandPermissions` helper function as it's not needed anymore
10+
* Removed the auto-generated documentation, as it was never really useful and didn't work
11+
* Bumped dependencies
12+
513
## v3.1.0
614

715
* Made the bot actually work

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Custom-Bot v2
1+
# Custom-Bot v3
22

33
Create your own discord bot - Fully customizable and with a lot of features. This bot is for advanced JS-Users, you
44
should only use it if you have some experience with Javascript, discord.js and JSON files.
@@ -172,6 +172,7 @@ Every module has to contain a `module.json` file with the following content:
172172
#### Interaction-Command
173173

174174
Note: Interaction-Commands get loaded after the configuration got checked.\
175+
Note: Permissions for Slash-Commands have to be configured in the Server-Settings and will be checked by Discord.\
175176
An interaction-command ("slash command") file has to export the following things:
176177

177178
* `run` (function; provided arguments: `interaction`):
@@ -188,14 +189,7 @@ An interaction-command ("slash command") file has to export the following things
188189
* `description`: Description of the command
189190
* `restricted`: Can this command only be run one of the bot operators (e.g. config reloading, change status or ...,
190191
boolean)
191-
* `permissions`:
192-
* Array
193-
of [ApplicationCommandPermissions](https://discord.js.org/#/docs/main/stable/typedef/ApplicationCommandPermissions)
194-
OR
195-
* Async function
196-
returning [ApplicationCommandPermissions](https://discord.js.org/#/docs/main/stable/typedef/ApplicationCommandPermissions) (
197-
gets called with `client` as argument. Commands are not synced at this point, but configuration is checked)
198-
* `defaultPermission`: Boolean (default: true): If enabled everyone on the guild can use this command
192+
* `defaultPermission`: Boolean (default: true): If enabled everyone on the guild can use this command and your command's permissions can not be synced
199193
* `options`:
200194
* [ApplicationCommandOptionData](https://discord.js.org/#/docs/main/stable/typedef/ApplicationCommandOptionData)
201195
OR

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)