Options
All
  • Public
  • Public/Protected
  • All
Menu

Huge class contaning functions to serialize discord.js classes into simple objects

Hierarchy

  • Serializer

Index

Methods

Static activity

  • Serialize an array of discord activity into an array of objects

    Parameters

    • activities: Array<Activity>

      Array of discord activities

    Returns Array<SerialActivity>

Static channel

  • Serialize a single discord channel into its counterpart object

    Parameters

    • channel: TextChannel | GuildChannel

      Discord channel class instance

    Returns SerialChannel

Static channels

  • channels(channels: Array<TextChannel | GuildChannel>): Array<SerialChannel>
  • Take an array of discord channels and serialize them individually with .channel()

    Parameters

    • channels: Array<TextChannel | GuildChannel>

      Array of discord channels

    Returns Array<SerialChannel>

Static emoji

  • Serialize a single discord emoji into its counterpart object

    Parameters

    • emoji: Emoji

      Discord emoji class instance

    Returns SerialEmoji

Static guild

  • Serialize a single discord guild into its counterpart object

    Parameters

    • guild: Guild

      Discord guild class instance

    Returns SerialGuild

Static guilds

  • Take an array of discord guilds and serialize them individually with .guild()

    Parameters

    • guilds: Array<Guild>

      Array of discord guilds

    Returns Array<SerialGuild>

Static member

  • Serialize a single discord member into its counterpart object

    Parameters

    • member: GuildMember

      Discord member class instance

    Returns SerialMember

Static members

  • Take an array of discord members and serialize them individually with .member()

    Parameters

    • members: Array<GuildMember>

      Array of discord guild members

    Returns Array<SerialMember>

Static message

  • Serialize a single discord message into its counterpart object

    Parameters

    • message: Message

      Discord message class instance

    Returns SerialMessage

Static messages

  • Take an array of discord messages and serialize them individually with .messages()

    Parameters

    • messages: Array<Message>

      Array of discord messages

    Returns Array<SerialMessage>

Static normalizeListener

Static normalizeQuery

Static permissions

  • Serialize a single discord permissions into an array of permission flags

    Parameters

    • permissions: Permissions

      Discord permissions class instance

    Returns Array<SerialPermissions>

Static presence

  • Serialize a single discord presence into its counterpart object

    Parameters

    • presence: Presence

      Discord presence class instance

    Returns SerialPresence

Static reaction

  • Serialize a single discord reaction into its counterpart object

    Parameters

    • reaction: MessageReaction

      Discord reaction class instance

    Returns SerialReaction

Static role

  • Serialize a single discord role into its counterpart object

    Parameters

    • role: Role

      Discord role class instance

    Returns SerialRole

Static user

  • Serialize a single discord user into its counterpart object

    Parameters

    • user: User

      Discord user class instance

    Returns SerialUser

Static void

  • void serializer to sympolize nothing is serialized or exists

    Returns SerialVoid

Generated using TypeDoc