10000 Release 0.11.0 · detritusjs/client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

0.11.0

Compare
Choose a tag to compare
@cakedan cakedan released this 25 Jul 06:24
· 24 commits to master since this release
8dc4d2c
  • Changed CommandCluster options to default useClusterClient as true.

  • Changed file uploading keys
    -> name renamed to key and data renamed to value.
    -> createMessage({file: {data: Buffer.alloc(1), filename: 'file.txt', name: 'file'}} to {file: {filename: 'file.txt', key: 'file', value: Buffer.alloc(1)}}

  • Changed rest client to use node-fetch in the back.

  • Removed Multi-Chunk from gateway.loadAllMembers to future-proof

  • Make ClusterClient distrbute and fetch both applications and oauth2application to its children

  • Add Shard.requestGuildMembers() which will generate a nonce and return all members found from the gateway

  • Add guildMembersChunk.chunkCount and guildMembersChunk.chunkIndex

  • Add Role.permissionsNew

  • Added rest.raw which is the raw rest client that allows raw responses from Discord

  • Added Guild.isReady

  • Added Guild.fetchMembersSearch() (uses rest)

  • Added Guild.requestMembers() (uses gateway)

  • Added Role.botId Role.integrationId Role.isBoosterRole which all use the new Role.tags

  • Added onMessageCheck to CommandClient

  • Added permissionsIgnoreClientOwner to Command

  • Added Jump Channel and Jump Channel Message to regexes

  • Added channelId, guildId, messageId to messageUpdate event

  • Removed isPartial from User

  • Add commandResponseDelete to CommandClient and triggerTypingAfter to Command
    -> triggerTypingAfter will trigger typing after x amount of ms if the command run function takes too long (the client waits for 1500 ms of typing before sending in the typing event)
    -> commandResponseDelete event is sent out if the context reply is deleted (commandDelete is when the actual command message gets deleted)

  • Fix channels being stored for guilds fetched (not from gateway)

  • Argument parsing enhacements/fix and message fix
    -> Fix message.convertMessage() ignoring an empty string for text
    -> Allow ability to use arg.default for the main command argument, meaning Command.default now is settable

0