FoPost LogoFoPost Docs
WordPressPlatform Configuration

Discord

Configure Discord in the FoPost WordPress plugin.

Discord

Configure the OwlStack WordPress plugin to publish posts to your Discord server channels.

Prerequisites

You can connect Discord using either a webhook (simpler) or a bot (more flexible).

Creating a Discord Webhook

  1. Open your Discord server and go to the target channel
  2. Click the gear icon to open Channel Settings
  3. Go to Integrations > Webhooks
  4. Click New Webhook
  5. Name it (e.g., "OwlStack") and copy the Webhook URL

Option B: Bot

Creating a Discord Bot

  1. Go to the Discord Developer Portal
  2. Create a new application
  3. Go to Bot and click Add Bot
  4. Copy the Bot Token
  5. Under OAuth2 > URL Generator, select bot scope with Send Messages permission
  6. Use the generated URL to invite the bot to your server
  7. Copy the Channel ID (enable Developer Mode in Discord settings, then right-click the channel)

Settings

Navigate to OwlStack > Discord in the WordPress admin.

FieldDescription
Webhook URLDiscord webhook URL (for webhook mode)
Bot TokenDiscord bot token (for bot mode)
Channel IDTarget channel ID (required for bot mode)

Webhook vs. Bot

Use Webhook mode for simple publishing to a single channel. Use Bot mode if you need to publish to multiple channels or require richer interactions.

Step-by-step (Webhook)

  1. Go to OwlStack > Discord in your WordPress admin
  2. Paste your Webhook URL
  3. Click Save Settings

Step-by-step (Bot)

  1. Go to OwlStack > Discord in your WordPress admin
  2. Paste your Bot Token
  3. Enter the Channel ID
  4. Click Save Settings

Testing

After saving your settings:

  1. Click Test Connection to verify your webhook URL or bot token
  2. Click Send Test Message to publish a test message
  3. Check your Discord channel to confirm the message appeared

Publishing

Once configured, Discord appears as a toggle in the OwlStack meta box on post edit screens.

Programmatic publishing

// Simple message
owlstack()->discord('Hello from WordPress!');

// Message with embed
owlstack()->discord('New blog post published!', [
    'type' => 'embed',
    'title' => 'My Post Title',
    'url'   => 'https://example.com/post',
]);

Constraints

ConstraintValue
Max message length2,000 characters
Max embed description4,096 characters
Max file size25 MB (50 MB with Nitro)
Supported media typesJPEG, PNG, GIF, MP4, WebM

Troubleshooting

IssueSolution
"Unknown Webhook"The webhook may have been deleted; create a new one
"Missing Access"Ensure the bot has Send Messages permission in the channel
"Invalid token"Double-check the Bot Token from the Developer Portal
Messages not appearingVerify the Channel ID is correct (right-click channel with Developer Mode on)

On this page