SpaceEEC
1bafa4b86b
fix(READY): do not overwrite Client#user when reidentifying
...
See #3216 , this commit attempts to fix losing ClientUser#_typing, which results in no longer being able to clear typing intervals
2019-05-16 19:56:19 +02:00
anandre
55447fd4da
docs(TextChanne): specify unit of rateLimitPerUser ( #3272 )
...
* Update TextChannel.js
Update `setRateLimitPerUser` description to specify the `number` is in seconds, per the Discord docs
* Update TextChannel.js
Add unit to the rateLimitPerUser property
* Update GuildChannel.js
2019-05-15 22:33:27 +02:00
SpaceEEC
16fcfa3db3
fix(WebSocketManager): rethrow unknown errors when connecting a WebSocketShard
2019-05-15 22:13:12 +02:00
Amish Shah
72dd872fce
VoiceBroadcast.{dispatchers -> subscribers}
2019-05-12 20:29:28 +01:00
izexi
75d5598fda
import TextDecoder from Util ( #3258 )
2019-05-08 21:03:18 +01:00
izexi
0dd3ed72ef
fix(Partials): Client#event:messageUpdate(oldMessage) and MessageReactionAdd on guild channels ( #3250 )
...
* ref: add getPayload and use for other get* methods
* return existing data.*
* use Action.getUser()
2019-05-07 20:56:39 +01:00
Gus Caplan
3d4513268d
Add optional zstd for faster WebSocket data inflation ( #3223 )
...
* zstd
2019-05-07 14:30:34 +01:00
Darqam
8915bc1d37
docs:(Client): disambiguate the description of channels collection ( #3251 )
...
* Disambiguate the description of <client>.channels
Although not explicitly said, the current wording makes it seem like all channels are cached and available at any time in this store. Hopefully this variation makes it a bit clearer.
* make more explicit (I think)
* remove trailing white spaces
2019-05-06 20:08:56 +02:00
SpaceEEC
8b83e2fdcb
typings(Presence): add missing guild property
2019-05-04 19:05:04 +02:00
Amish Shah
e64773e21b
Add ability to kick members from VoiceChannels and remove duplicated methods ( #3242 )
...
* feat(voice): kick members from voice channels
* fix(VoiceState): improve stability in checking for client user
* feat(VoiceState): add setChannel for moving/kicking members
* update typings
* remove duplicated methods across GuildMember and VoiceState
member.setDeaf => member.voice.setDeaf
member.setMute => member.voice.setMute
member.setVoiceChannel => member.voice.setChannel
2019-05-04 16:46:42 +01:00
Amish Shah
d7f8fd1ae0
fix #3244
2019-05-04 16:21:49 +01:00
izexi
176fc47699
feat(Actions): use partials for messageDeleteBulk ( #3240 )
...
* make use of partials
* don't cache the messages
* pass each message within the for..of iteration
2019-05-03 17:38:57 +02:00
Jacz
692494dc04
feat(VoiceState): self mute/deaf methods ( #3243 )
...
* Implemented setSelfMute/Deaf, done typings, fixed bug in VoiceState with errors.
* Completed requested changes
* return send in sendVoiceStateUpdate so its a promise, update typings
* Updated methods to return a boolean
* Requested changes
* Fix bug
* Update src/structures/VoiceState.js
Co-Authored-By: MrJacz <23615291+MrJacz@users.noreply.github.com >
* fix
2019-05-03 17:11:11 +02:00
Vlad Frangu
a59968f7de
src: add news and store channels, and missing guild props ( #3168 )
...
* src: Implement store and news channels!
* src: Remove code dupe
* src: Add missing guild properties
* docs: Add a small notice that the channel type may also change
* src: Remove re-creation of the MessageStore
* lint: Unused Import
* src: Requested changes for StoreChannels
* typings: Fix typings
* src: Moar guild updates
* src: Set maximumPresence to the data prop, the already existent one, or default to 5000
* typings: afkChannel is a VC
I keep confusing them, ffs
Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com >
* docs: Document that maximumMembers and maximumPresences may be inaccurate before fetching
* src Appels requested changes
2019-05-03 17:08:07 +02:00
Amish Shah
0d9bc8664d
voice: make Guild.voice more robust
2019-04-29 19:31:31 +01:00
Amish Shah
bcb0cd838b
voice: remove Guild.voiceConnection and VoiceChannel.connection
2019-04-29 19:29:16 +01:00
Amish Shah
dd44647537
voice: Guild.voiceConnection => Guild.voice.connection
2019-04-29 19:24:27 +01:00
Amish Shah
ce1e3d2084
feat(VoiceConnection): add .voice
2019-04-29 19:13:41 +01:00
bdistin
2666a9d6db
feat(MessageStore): add remove() ( #2468 )
...
* MessageStore#remove()
* typings
2019-04-29 17:53:32 +01:00
Vlad Frangu
d7a9b74523
src: Replace instanceof Array checks with Array.isArray and instanceof Buffer with Buffer.isBuffer ( #3227 )
...
* src: Replace instanceof Array checks with Array.isArray
* src: Buffer.isBuffer instead of instanceof Buffer
2019-04-29 17:49:41 +01:00
bdistin
9b0f4b298d
feature: public raw events ( #3159 )
...
* add a public alternative to the private raw event
while retaining raw for use in debugging privately
* only emit dispatch packets
* requested changes
TIL, that's neat
* fix padding
* requested changes
* Update WebSocketManager.js
2019-04-29 17:37:57 +01:00
izexi
870528ed33
feat(VoiceChannel): add editable ( #3173 )
...
* add VoiceChannel#editable
* replace unnecessary super with this
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
2019-04-29 17:35:48 +01:00
izexi
23191da13d
feat(Partials.GuildMember): GuildMemberRemove & Guild#me ( #3229 )
...
* use partials for GuildMemberRemove & Guild#me
* oops
* guild.members instead of Action.members
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
2019-04-29 17:05:52 +01:00
Vlad Frangu
bc31746621
src: Client#readyAt should be updated when triggerReady is called ( #3234 )
2019-04-29 17:03:29 +01:00
Crawl
aa253d9551
fix(ClientUser): lint
2019-04-28 13:14:26 +02:00
Amish Shah
4e0cf87d0f
fix: typing map being reset for ClientUser ( #3216 )
2019-04-27 18:52:26 +01:00
Amish Shah
e0cfb7fb36
fix: not checking for guild when creating a channel
2019-04-27 13:39:23 +01:00
Amish Shah
4d7fc036a1
fix: channels being removed from guild.channels
2019-04-27 11:46:48 +01:00
Vlad Frangu
577636a46d
src: fix random broken reconnects ( #3233 )
2019-04-27 08:25:24 +01:00
Vlad Frangu
de79bba965
src: Fix type error in WebSocketShard#onError ( #3231 )
2019-04-24 16:53:41 +02:00
izexi
7b531648e0
feat(GuildMemberStore) add options.count to prune ( #3189 )
...
* add GuildMemberStore#prune(options.count)
* typings: proper typings for null return value
2019-04-23 21:59:52 +02:00
SpaceEEC
39115c8acc
fix(MessageCreateAction): remove redundant GuildMemberStore#add call
...
This was also causing a bug where GuildMember#_roles was patched with a GuildMemberRoleStore
2019-04-23 21:21:41 +02:00
SpaceEEC
6a07715c1d
fix(Guild): only update emojis when they are present in the payload
2019-04-23 21:02:16 +02:00
Vlad Frangu
75cd260808
src: Don't use the GuildMemberRoleStore to patch the GuildMember _roles ( #3226 )
...
* src: Don't use the GuildMemberRoleStore for patching GuildMember#_roles
* src: Remove usage of _patch from the store
* src: Finish up clone changes
2019-04-23 19:44:02 +01:00
didinele
3f6d08a499
fix(typings): Collection#find & findKey can return undefined ( #3228 )
...
* fix(typings): [Collection#find](https://github.com/didinele/discord.js/blob/master/src/util/Collection.js#L172 ) can also return undefined
* same thing for findKey
2019-04-23 18:47:42 +02:00
Amish Shah
23e6414420
fix: old objects not being cached ( #3225 )
...
please post issues if you find any, will probably cause some
2019-04-23 11:32:03 +01:00
izexi
c4b79571ba
feat(Invite): add deletable getter ( #3203 )
...
* add Invite#deletable
* fix ci
* reee
* since guild is nullable
* accommodate for external invites
* nit(Invite): use guild instead of channel.guild
2019-04-22 09:24:32 +02:00
izexi
f7f4607b5f
docs(faq): bump to node 10.0.0 ( #3224 )
2019-04-22 09:09:06 +02:00
anandre
d1778772cd
docs: update node version requirement, npm install links, add update guide ( #3220 )
...
* Update welcome.md
Update node version requirement, npm install links, docs links, made a note that the guide is for stable and added a new link to the WIP update guide.
* docs(welcome.md): put notice for wip update guild on its own line
* docs(welcome.md): indent own line
* docs(README.md): apply the same changes here
2019-04-21 13:47:09 +02:00
Antonio Román
01c708bc75
feat(Sharding): change waitForReady to spawnTimeout ( #3080 )
...
This means that you'll not only be able to choose between having a timeout or not, but also to set the amount of milliseconds as you wish.
2019-04-21 13:34:09 +02:00
Purpzie
abd9d36816
feat(Util): resolve text parameter of splitMessage to a string ( #3212 )
2019-04-21 09:38:09 +02:00
Dragoteryx
52b4f09e58
fix(Structures): allow multiple extensions by checking prototype chain ( #3217 )
2019-04-21 09:34:12 +02:00
Vlad Frangu
1514df0f87
fix: emit resume event, silent disconnects, error event param ( #3192 )
...
* src: Fix shardResumed event not being emitted
* docs: Document Client#error again
* src: Fix onError due to incorrect typings
* src: handle onError properly for both uws and ws
* src: Try to fix silent disconnects when using uWs
* fix(WebSocketShard): uws emits plain objects, not errors
Emitting line of code: 39aa429f94/src/uws.js (L80-L83)
Listener attaching is here: https://github.com/discordjs/uws/blob/master/src/uws.js#L128
For reference, found a clue here: https://github.com/discordjs/discord.js/issues/1528
2019-04-21 09:32:16 +02:00
SpaceEEC
cde955c766
fix(PresenceUpdateAction): emit presences again ( #3214 )
...
* fix(PresenceUpdateAction): emit presences again
* update typings
2019-04-19 08:49:17 +02:00
Gryffon Bellish
bccbb550b0
docs(Collector): specify the unit for CollectionOptions#time ( #3219 )
2019-04-19 08:47:39 +02:00
Deivu (Saya)
b5320299f7
Only reset sessionID when close code is 1000 or 4006 ( #3213 )
...
* Event code 1001 should not get its sessionID reset
* Reset sessionID when close code is 1000 or 4006
2019-04-17 14:32:57 +01:00
izexi
39fd8fd645
fix(typings): remove duplicated Guild#defaultRole ( #3211 )
2019-04-16 22:14:01 +02:00
izexi
0b1176d9a1
chore(typings): declaring explicit nullable returns ( #3134 )
...
* strict nullable & WebSocketManager private typings
* missing semicolon
* kyra suggestion #1
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
* kyra suggestion #2&3
* space's requested changes
* space's requested change
* strict nullable & WebSocketManager private typings
missing semicolon
kyra suggestion #1
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
kyra suggestion #2&3
space's requested changes
space's requested change
* resolve conflicts
* deflate
2019-04-15 21:01:39 +02:00
MoreThanTom
52bc5b0170
feat(MessageEmbed): resolve color in embed constructor ( #2912 )
...
* Resolve color in embed constructor
* Use ColorResolvable type for color parameter
* docs(MessageEmbed): color property is still a number
2019-04-15 20:46:59 +02:00
Vlad Frangu
eb537b6f48
docs(WebSocketShard): mark non-nullable parameters as non-nullable ( #3209 )
...
* docs: Imagine having an optional nullable param
* docs: Another one
2019-04-15 20:17:27 +02:00