Skip to content

0.14.1

Compare
Choose a tag to compare
@cakedan cakedan released this 28 Mar 19:28
· 15 commits to master since this release
2e82ae2
  • Update Command Parser for positional arguments
    -> Added ability to skip the parse, incase you wanted the attachment or something
    --> Returning [true, anyValue] for a positional argument type will skip it

  • Fixed CommandClient not populating the mention prefixes on startup when using ClusterClient
    -> it will now check if the mentions are enabled and the mentions arent populated every time a command is executed

  • Update Structure
    -> Add .differencesBetween(Structure) which will give you differences between two structures (Useful for cloned objects)
    -> Add .hasDifference(key, value)
    -> Add .hasDifferences(rawObject)
    -> Add .hasDifferencesBetween(BaseStructure)

  • Update BaseStructure
    -> Add .clone() which will clone the object
    -> Add .isClone property
    -> Updated difference checking to be more efficient

  • Update _UPDATE Events
    -> CHANNEL_UPDATE
    --> Add old channel object under {old, ...payload}
    -> Overhaul GUILD_EMOJIS_UPDATE
    --> Update differences in payload {differences: {created, deleted, updated}, ...payload}
    ---> created is a BaseCollection made up of Emojis
    ---> deleted is a BaseCollection made up of Emojis
    ---> updated is a BaseCollection made up of {emoji: Emoji, old: Emoji}
    -> GUILD_MEMBER_UPDATE
    --> Add old member object under {old, ...payload}
    -> GUILD_ROLE_UPDATE
    --> Add old role object under {old, ...payload}
    -> GUILD_UPDATE
    --> Add old guild object under {old, ...payload}
    -> MESSAGE_UPDATE
    --> Add old message object under {old, ...payload}
    -> PRESENCE_UPDATE
    --> Add old presence object under {old, ...payload}
    -> USER_UPDATE
    --> Add old user object under {old, ...payload}
    -> USERS_UPDATE
    --> Add old user object under {old, ...payload}

  • Updated Channel
    -> Added Channel.rtcRegion (for voice channels)

  • Updated Invite
    -> Made Invite.channel type always available

  • Updated Message
    -> Made Message._reactions and Message._stickers not enumerable

  • Update Role
    -> Add Role.editPosition(number, {reason})