Class: MessageMaker

MessageMaker


new MessageMaker(self, uId, gId, cId, msg)

Creates a Discord~Message-like object, for a message that doesn't actually exist.
Parameters:
Name Type Argument Description
self SubModule SubModule instance to reference Discord objects.
uId string The id of the user who wrote this message.
gId string The id of the guild this message is in.
cId string <nullable>
The id of the channel this message was 'sent' in.
msg string <nullable>
The message content.
Source:

Members


<constant> author :Discord~User

Message author.
Type:
  • Discord~User
Source:

<constant> channel :Discord~TextChannel|Discord~DMChannel

TextChannel or DMChannel.
Type:
  • Discord~TextChannel | Discord~DMChannel
Source:

<constant> client :Discord~Client

Discord.JS Client.
Type:
  • Discord~Client
Source:

<constant> content :string

Message content with command prefix.
Type:
  • string
Source:

<constant> fabricated :boolean

Always true. Can be used to check if this message was created by us.
Type:
  • boolean
Default Value:
  • true
Source:

<constant, nullable> guild :Discord~Guild

Guild.
Type:
  • Discord~Guild
Source:

<nullable> locale :string

Guild locale setting.
Type:
  • string
Source:

<constant, nullable> member :Discord~GuildMember

Message author Member.
Type:
  • Discord~GuildMember
Source:

<constant> mentions :Object

Empty mention collections for compatibility.
Type:
  • Object
Source:

<constant> prefix :string

Command prefix.
Type:
  • string
Source:

<constant> text :string

Message content without command prefix.
Type:
  • string
Source: