Skip to main content

Class: MessageBuilder

discord.js-utilities/src.MessageBuilder

Implements

  • MessageCreateOptions

Constructors

constructor

new MessageBuilder(options?)

Parameters

NameType
options?MessageBuilderResolvable

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:47

Properties

allowedMentions

Optional allowedMentions: MessageMentionOptions

Implementation of

MessageCreateOptions.allowedMentions

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:39


content

Optional content: string

Implementation of

MessageCreateOptions.content

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:28


embeds

Optional embeds: (APIEmbed | JSONEncodable<APIEmbed>)[]

Implementation of

MessageCreateOptions.embeds

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:34


files

Optional files: (Stream | Attachment | BufferResolvable | JSONEncodable<APIAttachment> | AttachmentBuilder | AttachmentPayload)[]

Implementation of

MessageCreateOptions.files

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:45


nonce

Optional nonce: string | number

Implementation of

MessageCreateOptions.nonce

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:22


tts

Optional tts: boolean

Implementation of

MessageCreateOptions.tts

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:16


defaults

Static defaults: MessageBuilderResolvable = {}

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:141

Methods

addFile

addFile(file): MessageBuilder

Parameters

NameTypeDescription
fileStream | Attachment | BufferResolvable | JSONEncodable<APIAttachment> | AttachmentBuilder | AttachmentPayload

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:113


setAllowedMentions

setAllowedMentions(allowedMentions?): MessageBuilder

Parameters

NameTypeDescription
allowedMentions?MessageMentionOptions

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:104


setContent

setContent(content?): MessageBuilder

Parameters

NameTypeDescription
content?string

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:79


setEmbeds

setEmbeds(embeds?): MessageBuilder

Parameters

NameTypeDescription
embeds?(APIEmbed | JSONEncodable<APIEmbed>)[]

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:90


setFile

setFile(file): MessageBuilder

Parameters

NameTypeDescription
fileStream | Attachment | BufferResolvable | JSONEncodable<APIAttachment> | AttachmentBuilder | AttachmentPayload

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:123


setFiles

setFiles(files?): MessageBuilder

Parameters

NameTypeDescription
files?(Stream | Attachment | BufferResolvable | JSONEncodable<APIAttachment> | AttachmentBuilder | AttachmentPayload)[]

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:133


setNonce

setNonce(nonce?): MessageBuilder

Parameters

NameTypeDescription
nonce?string

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:69


setTTS

setTTS(tts?): MessageBuilder

Parameters

NameTypeDescription
tts?boolean

Returns

MessageBuilder

Defined in

projects/utilities/packages/discord.js-utilities/src/lib/builders/MessageBuilder.ts:60