WoltLab Cloud Discord API 1.0.5

This plugin serves as an interface between other plugins and your Discord server. This plugin is especially relevant for developers. It can also be used as a base plugin for other plugins.

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::

<requiredpackage minversion="1.0.0">dev.hanashi.wsc.discord-api</requiredpackage>

Create a bot in the ACP. This gets an ID. Using the following code you can use the API:

$discord = wcf\system\discord\DiscordApi::getApiByID($botID);

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

    • FIX: announcement channels are displayed as text channels again
  • Version 1.0.4

    • CHANGE: change of api url
    • FEATURE: added permission decoder
  • Version 1.0.3 pl 1

    • 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

    FEATURE: Neuer Discord-Type hinzugefügt wcf\system\discord\type\RoleMultiSelectDiscordType

  • Version 1.0.1

    • internal changes
  • Tolle gut dokumentierte API

    Diese Erweiterung ist toll und gut dokumentiert, genau wie man es von Hanashi's Erweiterungen gewohnt ist.