description |
---|
Seamlessly integrate Discord with your favorite APIs, databases, and programming languages, using WayScript. |
{% hint style="info" %} To interact with discord channels using the WayScript bot, use the Discord module. {% endhint %}
⚡ You can trigger WayScript programs to run when various Discord events occur.
In order to do this, you must first link your Discord account. Then, select the Discord Guild/Server you want to work with.
Run program when:
- A message was posted to the channel
- A user joined the server
Choose a Discord channel to work with.
{% hint style="info" %} If you have recently added a channel and do not see it, click the refresh button. {% endhint %}
-
Discord User
-
Discord Message
discord_message = { message : String, user : String, id : String, guild : Int, is_bot : Boolean, channel : Int, }