Discord

Channel-based messaging via webhooks. Perfect for community updates.

Discord works differently from other platforms: it uses webhooks rather than OAuth tokens that you configure within your Discord server. Great for community updates.

Quirks & Gotchas

Webhook-Based Posting

Discord's API prevents third-party applications from posting under user accounts. The webhook approach works as follows:

  • Connect a Discord server and designate channels to enable.
  • A webhook is generated for each selected channel.
  • Messages appear as bot communications, with a customizable name and profile image.

Channel Selection Required

Unlike most platforms, you must include a channelId when submitting post data. You can find available channels in the socialAccount.channels array.

Custom Bot Identity

Customize your bot's appearance with:

  • username: up to 80 characters, representing the message author name.
  • avatarUrl: image URL serving as the bot's profile picture.

Media Limits

ConstraintValue
Files0–10 (images and/or videos, mixed allowed)
Video max size25 MB
Image max size25 MB
TextMax 2,000 characters

Text & Field Limits

FieldLimit
textMax 2,000 characters
usernameMax 80 characters
avatarUrlMax 2,048 characters

Post Options

FieldTypeDescription
channelIdstringRequired. The channel to post to. Found in socialAccount.channels.
textstringMessage content. Max 2,000 characters.
uploadIdsstring[]Media attachments (images, videos).
usernamestringCustom display name. Max 80 characters.
avatarUrlstringCustom avatar URL. Max 2,048 characters.
await bundle.post.create({
  socialAccountTypes: ["DISCORD"],
  data: {
    DISCORD: {
      channelId: "123456789012345678",
      text: "Hello from Bulkit!",
      username: "My Bot",
      avatarUrl: "https://example.com/avatar.png"
    }
  }
});

Analytics

Discord's API does not provide analytics data. All metrics default to zero.

MetricNote
impressionsReturns 0
viewsReturns 0
likesReturns 0
commentsReturns 0

On this page