detritus

CreateMessageinterface

Interface RequestTypes.CreateMessage from detritus-client-rest.

On this page
import { RequestTypes } from 'detritus-client-rest';

RequestTypes.CreateMessage;
18 propertiessrc/types.ts:661

Properties

activity?
{ partyId?: string; sessionId?: string; type?: number }
optional
allowedMentions?
{ parse?: string[]; repliedUser?: boolean; roles?: string[]; users?: string[] }
optional
applicationId?
string
optional
attachments?
{ description?: string; durationSecs?: number; filename?: string; id: string | number; originalContentType?: string; uploadedFilename?: string; waveform?: string }[]
optional
content?
string
optional
enforceNonce?
boolean
optional
file?
optional
files?
optional
flags?
number
optional
hasSpoiler?
boolean
optional
messageReference?
{ channelId?: string; failIfNotExists?: boolean; guildId?: string; messageId?: string; type?: number }
optional
nonce?
string
optional
poll?
{ allowMultiselect: boolean; answers: { pollMedia: { … } }[]; duration: number; layoutType?: number; question: { emoji?: RawEmojiPartial; text?: string } }
optional
stickerIds?
string[]
optional
tts?
boolean
optional