class MessageReferenceBuilder
implements
JSONEncodable<MessageReferenceBuilderData>declare class MessageReferenceBuilder implements JSONEncodable<MessageReferenceBuilderData>
A builder that creates API-compatible JSON data for message references.
Constructors
data?: Partial<MessageReferenceBuilderData>)
constructor(data?: Partial<MessageReferenceBuilderData>
Creates new allowed mention builder from API data.
setChannelIdchannelId: Snowflake) : this (
channelId: Snowflake
Sets the id of the channel being referenced
setGuildIdguildId: Snowflake) : this (
guildId: Snowflake
Sets the id of the guild being referenced
setMessageIdmessageId: Snowflake) : this (
messageId: Snowflake
Sets the id of the message being referenced
setTypetype: MessageReferenceType) : this (
type: MessageReferenceType
Sets the types of message reference this represents
toJSONvalidationOverride?: boolean) : MessageReferenceBuilderData (
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.