Gryffon Bellish
9bcb6a04ba
fix(VoiceConnection): clear timeouts using Client#clearTimeout ( #3553 )
...
* Update VoiceConnection.js
* fix last instance
2019-10-27 16:58:38 +01:00
Antonio Román
a61cfc3004
docs: VoiceStateUpdate always sends an instance of VoiceState ( #3537 )
...
* docs: VoiceStateUpdate always sends the old
* typings: Update definition for voiceStateUpdate event
2019-10-18 11:32:19 +02:00
Souji
48856c0815
fix: set messages deleted when their channel is deleted ( #3519 )
2019-10-04 16:44:04 +02:00
Crawl
321beb73bd
revert: "feat(Partials): add DMChannel/MessageReaction#fetch()… ( #3468 )
...
This reverts commit b0047c424b .
2019-09-10 19:49:56 +02:00
izexi
b0047c424b
feat(Partials): add DMChannel/MessageReaction#fetch() and Parti… ( #3261 )
...
* add DMChannel#fetch() & Action#getChannel({recipients})
* ref for MessageReaction partial
* typings
* add PartialTypes.REACTION
* accommodate for fully removed reactions
* fix incorrect wording and typo
* typings: MessageReaction#count is nullable
* typings: mark MessageReaction#partial as readonly
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* fix(User): fetch dm channel if cached one is partial
* docs: add missing comma
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
2019-09-10 16:09:06 +02:00
iCrawl
4fc461c2f9
fix: browser-compatability
...
Fix #3453
2019-09-08 11:47:46 +02:00
Schuyler Cebulskie
4b34f1acbe
Remove past-tense naming on shard events
2019-08-31 17:14:48 -04:00
Amish Shah
c715ed9f8b
voice: remove passes
...
(discord will begin dropping duplicated audio packets from tomorrow, you should not set passes > 1)
2019-08-22 12:15:20 +01:00
Saya
e4309b23d5
feat: abort Requests that takes a lot of time to resolve ( #3327 )
...
* Add Request Timeout
* Add abort controller in packages
* Fix Lint Error.
* Fix Lint Errors
* Make Timeout Customizable & use finally
* Fixed a minor issue
* Fix eslint
* Update request timeout to use d.js client timeout methods.
2019-08-19 18:55:07 +02:00
Amish Shah
c6e8fccbf0
voice: fix #3418
...
(kicking bot from voice channel doesn't allow it to rejoin)
2019-08-17 13:42:22 +01:00
Amish Shah
2c4d14a71b
voice: remove redundant debug info
2019-08-14 19:22:41 +01:00
Kitten King
d8516efa36
docs: fix typos ( #3404 )
2019-07-25 17:18:23 +02:00
SpaceEEC
6cd4c27fae
docs(Client): fetchVoiceRegions returns a promise
2019-06-08 16:18:50 +02:00
DeJay
5aa9425040
Removes the trace packet ( #3312 )
...
* Removes the trace packet
* Update src/client/websocket/WebSocketShard.js
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com >
* Update src/client/websocket/WebSocketShard.js
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com >
2019-05-30 19:57:34 +01:00
Amish Shah
8652e47c14
fix: decode voice ws data as json
2019-05-28 14:51:41 +01:00
Amish Shah
b5aff6d120
remove member voice state after emitting leave event
2019-05-28 10:00:57 +01:00
Gus Caplan
065908956b
fix websocket unpacking ( #3301 )
2019-05-27 18:13:25 +01:00
Amish Shah
db56e0cbae
fix: delete VoiceStates even for uncached members
2019-05-27 18:09:54 +01:00
Amish Shah
949488bbbd
Fix #3218
2019-05-27 14:04:13 +01:00
anandre
34006cb51e
docs(StreamDispatcher): specify pausedTime is in milliseconds ( #3295 )
...
* 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
* Update StreamDispatcher.js
Specify unit for `StreamDispatcher.pausedTime`
2019-05-24 20:33:40 +02:00
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
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
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
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
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
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
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
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
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
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
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
thomasxd24
8da141637c
fix end method in VoiceBroadcast ( #3194 )
...
* fix end method in VoiceBroadcast
this.client is a ClientVoiceManager and thus its this.client.broadcasts instead of this.client.voice.broascasts
* revert the voicebroadcast and pass this.client at clientvoice
* passed this.client
2019-04-11 21:34:12 +01:00
Vlad Frangu
89e27e5071
src: Make broadcasts work again ( #3190 )
2019-04-08 17:29:19 +01:00
SpaceEEC
f479afca82
src: Fix TypeError ( #3187 )
2019-04-08 14:21:48 +02:00
Vlad Frangu
70d4b4455b
refactor(ClientVoiceManager): make public, remove Client#voiceConnections ( #3186 )
...
* docs: make voice public
* typings: Update typings to match the docs
* typings: ClientVoiceManager is nullable in Client
Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com >
* typings: Mark client as readonly
Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com >
* src: Make the client readonly
* src: Remove Client#voiceConnections getter in favor of ClientVoiceManager#connections
2019-04-08 14:20:53 +02:00
Vlad Frangu
982f48ce6a
src: Fix TypeError
2019-04-07 10:57:11 +03:00
bdistin
5e9bd786d1
refactor(APIRequest): utilize URLSearchParams ( #3180 )
...
* utilize URLSearchParams
* options.query can be undefined/null
* oops
* remembered what I intended
2019-04-05 11:32:19 +02:00