Class: MessageMaker

MessageMaker


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

Forms a Discord~Message similar object from given IDs.
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 :external:Discord~User

Message author.
Type:
  • external:Discord~User
Source:

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

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

<constant> client :external:Discord~Client

Discord.JS Client.
Type:
  • external: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 :external:Discord~Guild

Guild.
Type:
  • external:Discord~Guild
Source:

<constant, nullable> member :external:Discord~GuildMember

Message author Member.
Type:
  • external: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: