Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IMessage

Implemented by

Index

Properties

_message

_message: any

Methods

delete

getAuthor

getAuthorRoles

  • getAuthorRoles(): IRole[]

getChannel

getContent

  • getContent(excludeFirstWord?: boolean): string

getContentArray

  • getContentArray(excludeFirstWord?: boolean): string[]
  • Get the content of the message as an array.

    Parameters

    • Optional excludeFirstWord: boolean

    Returns string[]

    The message split into an array

getCreationDate

  • getCreationDate(): Date

getRegexGroups

  • getRegexGroups(regexPattern: RegExp): string[]
  • Get the regex groups of a message

    Parameters

    • regexPattern: RegExp

      The pattern which shall be applied on the message.

    Returns string[]

getServer

hasServer

  • hasServer(): boolean

isDeletable

  • isDeletable(): boolean

isMentioned

  • isMentioned(User: IUser): boolean
  • Check if a user was mentioned within the message.

    Parameters

    • User: IUser

      The user to check for mentions

    Returns boolean

    True if the user was mentioned, else false

Generated using TypeDoc