Discord

This is the Discord integration for sending Messages from XSOAR to Discord server made by Trustnet

Utilities · Discord

Details

IDDiscord
ProviderTencent
CategoryUtilities
From Version6.0.0
Docker Imagedemisto/python3:3.12.8.3296088
Supported ModulesAgentix XSIAM

README

This is the Discord integration for sending Messages from XSOAR to Discord server made by Trustnet

Configure Discord in Cortex

Parameter Description Required
Api Key You’ll find your api key in BOT section -> Reset Token True
Channel ID You’ll find your channel id by click on your channle then “Copy Channel ID” True

Commands

You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.

discord-send-message


Send message to your channel

Base Command

discord-send-message

Input

Argument Name Description Required
text Enter your text. Required

Context Output

Path Type Description
Discord.Message.id unknown Message ID
Discord.Message.content unknown Content
Discord.Message.channel_id unknown Channel ID

discord-get-message


Get message details

Base Command

discord-get-message

Input

Argument Name Description Required
message_id Right click on message then “Copy Message ID”. Required

Context Output

Path Type Description
Discord.Details.id unknown Message ID
Discord.Details.content unknown Message Content
Discord.Details.channel_id unknown Message Channel ID
Discord.Details.author.id unknown Message Author ID
Discord.Details.author.username unknown Message Author User Name

Configuration parameters

  • api_key — Api Key
  • credentials
  • channel_id — Channel ID (required)

Commands (2)

  • discord-get-message

    Get message details

  • discord-send-message

    Send message to your channel

### Discord Integration
 #### Integration Author: [Trustnet LTD.](https://www.trustnet.co.il) Bar Halifa-Levi

---
### Discord API key:
- Go To Developer Portal: [Here](https://discord.com/developers/applications)
- Create New Application or use existing one.
- On the left menu go to Bot
- Click Reset Token
- Copy the token

### Add Discort BOT to your server:
- Go To Developer Portal: [Here](https://discord.com/developers/applications)
- Click on your application
- On the left menu go to OAuth2 -> URL Generator
- Check "bot" on SCOPES
- Check "Send Messages" on BOT PERMISSIONS (Under TEXT PERMISSIONS)
- Copy GENERATED URL
- Go to your browser and enter the URL
- Add the bot to your server

### Discord channel ID:
- Go To your Discord server
- Right Click on your desire channel
- Copy Channel ID


---

[View Discord Documentation](https://discord.com/developers/docs/intro)