0.11.0
-
Changed CommandCluster options to default
useClusterClient
astrue
. -
Changed file uploading keys
->name
renamed tokey
anddata
renamed tovalue
.
->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
andguildMembersChunk.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 newRole.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
toCommandClient
andtriggerTypingAfter
toCommand
->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
-> Fixmessage.convertMessage()
ignoring an empty string for text
-> Allow ability to usearg.default
for the main command argument, meaningCommand.default
now is settable