* src: Fix up WebSocketShard errors
* typings: Forgot to update
* src: Forgot debug variable
* src: Fix issue Bella found
If the WS was not connected when the HELLO timeout passes
(CONNECTING, etc), the shard would get stuck
due to never rejecting the WebSocketShard#connect
Promise with the DESTROYED event
* fix(Voice*): synthesize speaking event from UDP packets
* fix(VoiceReceiver): skip over undocumented Discord byte
See #3555
* fix(VoiceConnection): play frame silence before emitting ready
* typings: account for changes in private api
* Add support for MessageReaction#remove and MESSAGE_REACTION_REMOVE_EMOJI
* Remove reaction from cache
Co-Authored-By: matthewfripp <50251454+matthewfripp@users.noreply.github.com>
* fix: message may be partial
* Clarify what the event entails
* Document client in MessageReaction
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com>
* await the REST call
* Add MessageReaction#remove to typings
Co-authored-by: matthewfripp <50251454+matthewfripp@users.noreply.github.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
* Update package.json
* Change Version String after amishshah's suggestion
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com>
Co-authored-by: Amish Shah <amishshah.2k@gmail.com>
* Add support for new Invite events
* Merge typings for events
Co-Authored-By: Sugden <leoaustin675@gmail.com>
* Add warning about requiring permissions
* Null check channel and guild
* fix: .guilds not .channels
* Mark topic as nullable for TextChannel
* Backport separate NewsChannel typings
* Ensure NewsChannel#rateLimitPerUser is undefined
* Revert rateLimitPerUser, considered breaking
* Add rateLimitPerUser back to typings
* Linting
* Revert NewsChannel extends TextBasedChannel
* docs(MessageMentions): channels are actually in order
* docs(MessageMentions): readd info about order for channels
* docs(MessageMentions): reword info to account for rtl locales
* Convert message#member to a getter
* Try to cache members from data in message payloads
* Cache mentioned members
* Revert Message#member getter - breaking change
* Revise member caching
* Revise member mention caching
* Pass member to _addMember correctly
* Use message.guild instead of this.guild
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com>
* Merge if's onto one line
* fix(Message): use this.author.id to check cache
Discord does not send an id in the member data here
* chore(Message): reindent equals
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
* Add internal support for @discordjs/opus
* Remove redundant try/catch
* fix: use setBitrate method in @discordjs/opus
* chore: tidy up opus imports
* fix: correct imports for DiscordJsOpusEngine
* chore: update docs to prefer @discordjs/opus
* chore: bump prism-media to 0.0.4 to allow ffmpeg-static
* feat(Presence): add support for multiple activites
* typings(Presence): fix spelling of 'activities'
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com>
Co-authored-by: Amish Shah <amishshah.2k@gmail.com>
* src: Cleanup event listeners on WebSocket connections
Should prevent #3641 from happening, as well as double connections on a shard
* typings: Forgot to add the method