Skip to main content

Discord

This Integration is part of the Discord Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

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

Configure Discord on Cortex XSOAR#

  1. Navigate to Settings > Integrations > Servers & Services.

  2. Search for Discord.

  3. Click Add instance to create and configure a new integration instance.

    ParameterDescriptionRequired
    Api KeyYou'll find your api key in BOT section -> Reset TokenTrue
    Channel IDYou'll find your channel id by click on your channle then "Copy Channel ID"True
  4. Click Test to validate the URLs, token, and connection.

Commands#

You can execute these commands from the Cortex XSOAR 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 NameDescriptionRequired
textEnter your text.Required

Context Output#

PathTypeDescription
Discord.Message.idunknownMessage ID
Discord.Message.contentunknownContent
Discord.Message.channel_idunknownChannel ID

discord-get-message#


Get message details

Base Command#

discord-get-message

Input#

Argument NameDescriptionRequired
message_idRight click on message then "Copy Message ID".Required

Context Output#

PathTypeDescription
Discord.Details.idunknownMessage ID
Discord.Details.contentunknownMessage Content
Discord.Details.channel_idunknownMessage Channel ID
Discord.Details.author.idunknownMessage Author ID
Discord.Details.author.usernameunknownMessage Author User Name