Souji
59205a2152
fix: provide count on bulk deletion ( #3682 )
...
* GuildAuditLogsEntry should provide count as extra in case of MESSAGE_BULK_DELETE
* inner class: GuildAuditLogsEntry in GuildAuditLogs.js
2020-01-13 14:02:31 +00:00
SpaceEEC
b5825c33b0
feat(Speaking): add PRIORITY_SPEAKING bit ( #3680 )
2020-01-13 13:58:40 +00:00
didinele
f74ae12d6a
fix(typings): remove VoiceChannel#connection ( #3676 )
2020-01-11 20:42:01 +01:00
Saya
a53d86579b
typings(BaseClient): remove delay parameter from setImmediate ( #3667 )
...
There is no delay parameter on setImmediate in Node.JS docs:
https://nodejs.org/docs/latest-v12.x/api/timers.html#timers_setimmediate_callback_args
2020-01-09 23:14:55 +01:00
Gryffon Bellish
d2ef02906c
cleanup(DataResolver): stats can't be falsy ( #3651 )
2020-01-05 17:45:16 +01:00
izexi
6af0da1043
feat(Partials): add DMChannel/MessageReaction#fetch() and PartialTypes.REACTION ( #3474 )
...
* 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 >
* fix: accomodate for new reactions
* fix: updating existing/new count on _patch
* docs: typo
* for consistency
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2020-01-05 16:45:49 +01:00
tipakA
bf31b28ad9
feat(RichPresenceAssets): add Twitch preview link for largeImageURL ( #3655 )
2020-01-05 00:50:38 +01:00
Jyguy
155b682f6c
typings(GuildEmoji): make url not-nullable ( #3656 )
...
* typings(GuildEmoji): make url not-nullable
* make GuildEmoji.url readonly
2020-01-04 23:23:01 +01:00
Cadence Fish
c734979ad4
typings(ShardingManager): add options.shardList ( #3657 )
2020-01-03 13:53:27 +01:00
SpaceEEC
97eac663b3
feat(MessageMentions): cache mentioned members ( #3601 )
2019-12-27 19:28:04 +01:00
SpaceEEC
e660ea90cc
fix(Webhook): edit channel when editing avatar ( #3588 )
2019-12-27 19:27:48 +01:00
SpaceEEC
ea76a56639
feat(Webhook): add type property and created* getters ( #3585 )
...
* feat(Webhook): add created* getters
* feat(Webhook): add type property
* typings(WebhookFields): use primitive string for url getter
Co-Authored-By: Gryffon Bellish <owenbellish@gmail.com >
* fix(Webhook): token can be null
Co-authored-by: Gryffon Bellish <owenbellish@gmail.com >
2019-12-27 19:27:34 +01:00
SpaceEEC
fc27ce1a15
typings(Bitfield): add hasParams to toArray, fix serialize's type ( #3579 )
...
* typings(Bitfield): add hasParams to toArray, fix serialize's type
* fix: apply suggested changes
* chore: remove incorrect whitespace
* fix: make params optional
* nit: pluralize bit in Permissions#missing
* nit: group non-static methods together
2019-12-27 19:26:41 +01:00
NightScript
50ed3293a5
chore: issue config refactor ( #3640 )
...
* Create config.yml
Instead of making an entire new page with just text talking about the discord server (which they could ignore, as most people don't read), just link people directly to the discord server
* Delete question---general-support-request.md
2019-12-25 03:29:19 +01:00
Gryffon Bellish
d4333f5bbe
chore: node version in package.json ( #3643 )
2019-12-25 03:28:09 +01:00
Gryffon Bellish
45b8971000
deps: mark utf-8-validate as optional, remove mentions of uws and zucc ( #3638 )
...
* Mark utf-8-validate as optional
* remove uws and zucc
2019-12-23 23:01:07 +01:00
Vlad Frangu
710101c580
src(WebSocket): fix race condition ( #3636 )
...
A race condition caused Client#user to be null in the ready event if the client handled 0 guilds.
2019-12-22 10:31:26 +01:00
Antonio Román
b4f00bfb6b
feat: widen GuildResolvable to include more structures ( #3512 )
...
* feat: Widen GuildResolvable to include GuildChannel and GuildMember
* docs: Documented the new overloads
Co-Authored-By: Gryffon Bellish <owenbellish@gmail.com >
Co-authored-by: Gryffon Bellish <owenbellish@gmail.com >
2019-12-21 21:28:09 +01:00
ottomated
f578cce9ac
feat(Guild): add systemChannelFlags ( #3559 )
...
* Add systemChannelFlags bitfield to Guild
* Implement @vladfrangu's suggestions
* fix: apply suggestions, reverse order of flags, reword docs
* docs: add SystemCHannelFlagsResolvable typedef
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2019-12-21 21:27:14 +01:00
Charlie
e13b3f550d
typings: TextChannel.topic & NewsChannel.topic should be nullable ( #3628 )
...
* Fix GuildChannel#topic to be optional
* Update typings/index.d.ts
Implement the suggested change from optional to null return
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
* Update typings/index.d.ts
Implement the suggested change from optional to null return
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
2019-12-21 21:12:35 +01:00
Sugden
99e8d3c540
cleanup: remove acknowledge method from TextChannel & DMChannel ( #3635 )
...
* Update TextChannel.js
* remove acknowledge method
2019-12-21 20:32:24 +01:00
SpaceEEC
7d74e7e419
typings(Extendable): add missing channels ( #3581 )
2019-12-20 11:58:46 +01:00
Vlad Frangu
5519d6fbaa
src: sharding cleanup and checkReady rewrite ( #3393 )
...
* src: Step 1 of who knows how many
* src: Remove accidentally committed test file
* src: Remove useless added property in package.json
* docs: Trailing spaces, come back >.>
* src: Buhbye uws, we will miss you..not!
* src: Move 'auto' shard selection from totalShardCount to shards
* src: tweak
* src: Filter out floats from shard IDs
You want half of a shard or what?
* src: Misc cleanup and bugfix for GUILD_BAN_ADD
* src: Rewrite checkReady
* src: Misse this while merging master into my branch
* typings: Bring these up to date
* typings: Forgot allReady event
* src: Don't checkReady if the shard isn't waiting for guilds
* src: Fix a possible bug for when the ws dies and the session becomes -1
* src: Hopefully fix last edge case that could case a shard to infinitely boot loop
* src: Rename totalShardCount to shardCount
* src: Small bugfix
* src: Correct error message for shardCount being imvalid
Co-Authored-By: bdistin <bdistin@gmail.com >
* src: Small tweaks
* src: If this doesn't fix the issues I'm gonna throw a brick at my PC
* src: I swear, STOP BREAKING
* src: *groans at a certain snake*
* src: Use undefined instead of null on destroy in close event
Setting it to null sets the close code to null, which causes a WebSocket error to be thrown. The error is thrown from WebSocket, although there is no connection alive. Fun times!
* src: @SpaceEEC's requested changes
* src: Remove zucc from discord.js
Discord is removing support for it, sooo... Bye bye
* src: Missed this
* src: Apply @kyranet's suggestions
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
* src: @kyranet's suggestions
* src: Remove pako, update debug messages
- Pako is officially gone from both enviroments
Install zlib-sync on node.js if you want it
- Improve a few debug messages some more
- Discover that internal sharding works in browsers but please don't do that
2019-12-15 20:45:27 +01:00
Gryffon Bellish
f56b442e83
typings(Bitfield): use IterableIterator instead of Iterator ( #3599 )
2019-12-15 20:26:09 +01:00
izexi
43782839ec
feat: add new MessageFlags.FLAGS & User#system ( #3603 )
...
* feat: add new FLAGS
* feat: add system property
* typings: add User#system & new MessageFlagsStrings
2019-12-15 20:23:06 +01:00
Carter
330d5db586
feat(Webhook): addition of Webhook#avatarURL function ( #3625 )
...
* feat: addition of Webhook#avatarURL
* typings: added Webhook#avatarURL
* fix: trailing space
* docs: fixed jsdoc function description
* fix: typo
2019-12-15 20:20:15 +01:00
BorgerKing
123713305a
docs(ReactionStore): resolveID takes a reaction, not role ( #3617 )
...
* Docs: ReactionStore.resolveID should take Reaction, not role
* Make param lowercase
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
2019-12-08 19:52:03 +01:00
sillyfrog
4585d965b4
Start/Stop speaking events on UDP packets ( #3578 )
...
* Start/Stop speaking using incomming UDP packets
* Fix ESLint errors
* Updates for styling consistency
Co-Authored-By: Gryffon Bellish <owenbellish@gmail.com >
* Minor improvements
* Acutally use previousTimeout
* Use BaseClient setTimeout and refresh()
* Update README to match node version for refresh()
* Update comment to match startSpeaking
* Correctly report Priority bit
* Fix ESlint errors
2019-12-06 11:59:57 +00:00
Clemens E
bb8333a4f9
Handle voice errors outside of authenticated event ( #3520 )
2019-12-06 11:56:29 +00:00
Jeroen Claassens
2ca74d6b63
feat(Activity): support for CUSTOM_STATUS activity type ( #3353 )
...
* feat: support for custom status in activity
* nit(typings): order properties
2019-12-05 13:13:42 +01:00
BannerBomb
1b1289b35e
misc(index): export Store- and NewsChannel ( #3594 )
...
* Added Store and NewsChannel to exports
Added the StoreChannel and NewsChannel structures to the module exports.
* keeping the list in alphabetical order
I moved the StoreChannel and NewsChannel exports that I added in the last commit in their right position to keep things alphabetized.
2019-11-25 16:17:30 +01:00
Gryffon Bellish
100360705a
fix(APIRouter): use proper symbol for util.inspect ( #3589 )
2019-11-20 18:11:23 +01:00
Jyguy
cbde819b6a
typings(GuildAuditLogsFetchOptions): specify concrete type of 'type' property ( #3586 )
2019-11-20 00:21:47 +01:00
Gryffon Bellish
d39f17925d
fix(Invite): fix valueOf returning undefined ( #3582 )
...
* Update Invite.js
* Fix typings
* Fix ESLint errors
2019-11-19 21:54:35 +01:00
Carter
1bcc0c2e1d
feat(GuildAuditLogs): add new event types ( #3584 )
...
* adds more audit-log entries
this adds additional audit-log types from https://discordapp/discord-api-docs/pull/1191
* typings for new audit-log entries
* typings for new audit-log entries
* fix action numbers
2019-11-19 21:51:26 +01:00
Edward Wang
1352bff2fd
docs(README): link to guide page instead of source ( #3566 )
...
* Fixed the Update Guide Link
Original link pointed to https://github.com/discordjs/guide/blob/v12-changes/guide/additional-info/changes-in-v12.md , which is invalid. I'm not sure if the link I put (https://github.com/discordjs/guide/blob/master/guide/additional-info/changes-in-v12.md ) is the correct one, but I will assume it is.
* Used link to the DJS guide.
2019-11-09 20:52:55 +01:00
Carter
9a31e6e53a
docs(README): travis badge => github actions badge ( #3569 )
...
* travis badge => github actions badge
* this is why you don't copy paste :^)
2019-11-09 20:52:06 +01:00
matthewfripp
38d370fb18
feat(MessageAttachment): add spoiler property ( #3561 )
...
* feat(MessageAttachment): add spoiler property
* typings
* Implement suggestions
* Make readonly
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
2019-11-04 14:44:36 +01:00
Jiralite
cc466fa4b9
docs: NewsChannel and StoreChannel ( #3557 )
...
* Added news & store
* Update GuildChannel.js
* Added in News and Store
2019-11-04 11:35:14 +01:00
Purpzie
99466a99ed
typings(Util): use StringResolvable (fixes old pull) ( #3556 )
...
Fixes my extremely old pull #3212 that didn't actually update the typing (Didn't know at the time.)
2019-11-04 11:33:42 +01:00
Albus Dumbledore
e26697f07d
docs(readme): table of contents ( #3539 )
2019-11-04 11:29:19 +01:00
SpaceEEC
2e20e8092b
fix(*Collector): account for a max listener count of 0 ( #3504 )
2019-11-04 11:25:43 +01:00
Jeroen Claassens
3c634b2a26
chore: mark optional peerDependencies as optional ( #3511 )
2019-11-04 11:25:14 +01:00
Marwin M
3a9eb5b929
Fix Opus voice streams ( #3555 )
...
This fixes a wrong assumption about incoming discord voice packets revealed during a recent discord change that broke incoming opus voice streams
2019-10-29 12:22:21 +00:00
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
Alexander Kashev
16db92ede8
typings(GuildEmoji): restore deletable, remove inherited property deleted ( #3543 )
...
* Typings: restore deletable on GuildEmoji
* Remove inherited property "deleted"
2019-10-18 13:06:34 +02:00
rei2hu
9e0705cbc3
fix(Message): check for edited_timestamp in data when patching message ( #3535 )
...
* check for data.edited_timestamp
* actually i should do it like this for consistency
* indentation
2019-10-18 11:55:35 +02: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
Alexander Kashev
ca1bd61f4f
typings(Emoji): remove deletable, add deleted, mark nullable props ( #3542 )
2019-10-18 11:30:49 +02:00
bdistin
c3228b4263
fix(docslink): partialtypes ( #3510 )
2019-10-12 00:54:02 +02:00