Different bots can be created, which can then be accessed by other plugins.
Questions and Answers
How do I create a Bot?
Go to ACP -> Configuration -> Discord -> Discord Bots -> Add Discord-Bot.
How can I implement to my Plugin?
Add the dependency to this plugin to your package.xml::
Create a bot in the ACP. This gets an ID. Using the following code you can use the API:
The $botID has to be changed, of course.
Now you can communicate with Discord. Here is an example to get a channel:
-
Version 1.0.5
- 209.41 kB
- 53 Downloads
- FIX: announcement channels are displayed as text channels again
-
Version 1.0.4
- 209.41 kB
- 56 Downloads
- CHANGE: change of api url
- FEATURE: added permission decoder
-
Version 1.0.3 pl 1
- 207.36 kB
- 86 Downloads
- OAuth2 state-Parameter hinzugefügt
- OAuth2 refreshToken hinzugefügt
- User-Flag-Decoder hinzugefügt
- Snowflake-Decoder hinzugefügt
- neuen Option-Type DiscordRoleMultiSelect hinzugefügt
- behebt Fehler bei WebHooks wenn Avatar für Bot gesetzt wurde
-
Version 1.0.2
- (1)
- 204.29 kB
- 129 Downloads
FEATURE: Neuer Discord-Type hinzugefügt wcf\system\discord\type\RoleMultiSelectDiscordType
-
Version 1.0.1
- 193.54 kB
- 17 Downloads
- internal changes