Skip to main content

Class: MessageBuilder

discord.js-utilities/src.MessageBuilder

Implements

Constructors

constructor

new MessageBuilder(options?)

Parameters

NameType
options?MessageBuilderResolvable

Defined in

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

Properties

allowedMentions

Optional allowedMentions: MessageMentionOptions

Implementation of

MessageOptions.allowedMentions

Defined in

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


content

Optional content: null | string

Implementation of

MessageOptions.content

Defined in

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


embeds

Optional embeds: (MessageEmbed | MessageEmbedOptions | APIEmbed)[]

Implementation of

MessageOptions.embeds

Defined in

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


files

Optional files: (MessageAttachment | Stream | FileOptions | BufferResolvable)[]

Implementation of

MessageOptions.files

Defined in

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


nonce

Optional nonce: string | number

Implementation of

MessageOptions.nonce

Defined in

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


tts

Optional tts: boolean

Implementation of

MessageOptions.tts

Defined in

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


defaults

Static defaults: MessageBuilderResolvable = {}

Defined in

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

Methods

addFile

addFile(file): MessageBuilder

Parameters

NameTypeDescription
fileMessageAttachment | Stream | FileOptions | BufferResolvable

Returns

MessageBuilder

Defined in

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


setAllowedMentions

setAllowedMentions(allowedMentions?): MessageBuilder

Parameters

NameTypeDescription
allowedMentions?MessageMentionOptions

Returns

MessageBuilder

Defined in

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


setContent

setContent(content?): MessageBuilder

Parameters

NameTypeDescription
content?string

Returns

MessageBuilder

Defined in

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


setEmbeds

setEmbeds(embeds?): MessageBuilder

Parameters

NameTypeDescription
embeds?(MessageEmbed | MessageEmbedOptions | APIEmbed)[]

Returns

MessageBuilder

Defined in

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


setFile

setFile(file): MessageBuilder

Parameters

NameTypeDescription
fileMessageAttachment | Stream | FileOptions | BufferResolvable

Returns

MessageBuilder

Defined in

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


setFiles

setFiles(files?): MessageBuilder

Parameters

NameTypeDescription
files?(MessageAttachment | Stream | FileOptions | BufferResolvable)[]

Returns

MessageBuilder

Defined in

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


setNonce

setNonce(nonce?): MessageBuilder

Parameters

NameTypeDescription
nonce?string

Returns

MessageBuilder

Defined in

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


setTTS

setTTS(tts?): MessageBuilder

Parameters

NameTypeDescription
tts?boolean

Returns

MessageBuilder

Defined in

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