Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.41 KB

discord-trigger.md

File metadata and controls

57 lines (38 loc) · 1.41 KB
description
Seamlessly integrate Discord with your favorite APIs, databases, and programming languages, using WayScript.

Discord Trigger

Run your script when Discord events occur.

{% hint style="info" %} To interact with discord channels using the WayScript bot, use the Discord module. {% endhint %}

🔗 Link Your Discord Account

⚡ 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.

⚙ Settings

⚡ Choose when to run the program

Run program when:

  • A message was posted to the channel
  • A user joined the server

#⃣ Choose a Channel

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 %}

📤 Output

  • Discord User

  • Discord Message

    discord_message = {
                        message : String,
                        user    : String,
                        id      : String,
                        guild   : Int,
                        is_bot  : Boolean,
                        channel : Int,
    }