Skip to content

0.11.1

Compare
Choose a tag to compare
@cakedan cakedan released this 20 Aug 06:18
· 23 commits to master since this release
6430a9a

Command Arguments
-> Renamed Command.args to Command.argParser and make Command.args a setter
-> Added positional argument support
--> {type: [{name: 'arg1'}, {name: 'arg2', consume: true}]}
-> Added choices parameter
-> Added required parameter
-> Added help parameter
--> A parameter failing to be inside choices or is required but isn't passed in will use this value as the error message
-> Cache subsequent Command.names calls (performance fix)

Add typings for once and subscribe on Client Objects
-> They're now properly typed like the on listener

Differences Fixes
-> Fix guildMemberUpdate always having {roles} in the differences object
-> guildMemberUpdate can have a null differences, often, because it might be a user update that was announced via usersUpdate
-> messageUpdate, attachments, embeds, mentions should have better checks for being in the differences params

Markup Tools
-> Fix codestring escaping
-> Add link escaping

Embed Helper
-> Fix Embed.size not counting author name

Guild Structure
-> Added permissions_new

MessageActivity Structure
-> Added activity getter, to get the related activity to the invite

MessageEmbed Structure
-> Add MessageEmbed.size and MessageEmbed.length

Message Structure
-> Add Message.mentionHere (Checks to see if Message.mentionEveryone is from @here)
-> Add better difference checking (for messageUpdate listeners)

Overwrite Structure
-> Added allow_new, deny_new

Role Structure
-> Added permissions_new

Voice State Structure
-> Added mute property (forgot this a long time ago apparently)

Events

  • PRESENCE_UPDATE
    -> No longer diff the entire presence if only USERS_UPDATE is being listened to
    -> Don't check hasDifference based off activity id since it could be custom or spotify:1 which won't make it unique