Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.25 KB

File metadata and controls

28 lines (22 loc) · 1.25 KB

Zernio::SendDiscordDirectMessageRequest

Properties

Name Type Description Notes
account_id String SocialAccount _id of the connected Discord account the bot speaks as. Caller must own the account (directly or via team membership).
user_id String Discord snowflake ID of the recipient (15-21 digits).
content String Message text, up to 2,000 characters. [optional]
embeds Array<Object> Up to 10 Discord embeds. Same shape as channel-post embeds (title, description, color, fields, etc.). See DiscordPlatformData.embeds for the embed object schema. [optional]
attachments Array<SendDiscordDirectMessageRequestAttachmentsInner> Up to 10 media attachments. Each is `{ type: image video
tts Boolean Send as text-to-speech message. [optional]

Example

require 'zernio-sdk'

instance = Zernio::SendDiscordDirectMessageRequest.new(
  account_id: 65a1b2c3d4e5f60718293a4b,
  user_id: 1234567890123456789,
  content: null,
  embeds: null,
  attachments: null,
  tts: null
)