Jan
f7643f7bbe
feat: interactions ( #5448 )
...
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Advaith <advaithj1@gmail.com >
Co-authored-by: Shiaupiau <stu43005@gmail.com >
Co-authored-by: monbrey <rsm999@uowmail.edu.au >
Co-authored-by: Tiemen <ThaTiemsz@users.noreply.github.com >
Co-authored-by: Carter <carter@elhnet.net >
2021-05-07 17:22:33 +02:00
Robert Coe
cdcc50f365
refactor: remove error-silencing try/catch on event handler imports ( #5542 )
2021-04-30 21:48:19 +02:00
Amish Shah
eec7cf7634
feat: stage channels ( #5456 )
...
* feat: add stage channel type
* feat: initialise stage channel structure
* feat: add STAGE_MODERATOR permissions bitfield
* fix: typo in permissions
* fix(Channel): type selection logic
* feat: add rtcRegion to StageChannel and VoiceChannel
* feat: rtc region editing for stage and voice channels
* feat: stage channel userLimit
* feat: add stage channels to exports
* feat: add computed properties to stage channel
* feat(VoiceState): include stage channel in docs
* feat: allow ability to join stage channels
* feat(StageChannel): join and leave methods
* docs: add StageChannel link in GuildChannel docs
* feat(VoiceState): suppress and requestToSpeakTimestamp
* feat(StageChannel): setRequestToSpeak
* refactor(StageChannel): update setRequestToSpeak
* feat(VoiceState): add moveToSpeakers and moveToAudience
* feat(VoiceState): add methods to move in/out of speakers
* feat(VoiceState): add stage channel sanity checks
* feat(Permissions): add REQUEST_TO_SPEAK
* feat(VoiceState): simpler methods
* docs(VoiceState): add documentation for new methods
* refactor: remove unused error message
* chore: remove debug statements
* chore: revert changes to package-lock.json
* docs(VoiceState): clarify suppress
* docs(VoiceState): add missing @type param
* feat(StageChannel): remove nsfw property
* fix(VoiceState): check permissions in channel
Co-authored-by: Advaith <advaithj1@gmail.com >
* fix(VoiceState): instantiate error with new
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
* refactor(VoiceState): more readable API route builder
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* style(VoiceState): fix lint errors
* docs(VoiceState): add example usage for new methods
* docs: setRTCRegion examples
* chore: update typings
* fix(VoiceState): calculate permissions for self
* refactor(VoiceState): tidy up implementation
* Update src/structures/VoiceState.js
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
* refactor: vaporox's suggestions
* style(VoiceState): fix linter errors
* chore: update typings
* chore: remove unused error message
* refactor(VoiceState): use optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* chore: move getters below constructor in typings
* refactor(StageChannel): optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* style(VoiceState): fix lint errors
* docs: fix incorrect types
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/VoiceChannel.js
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* Update src/structures/VoiceChannel.js
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* refactor(VoiceState): use optional chaining
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
* refactor(StageChannel): remove permission override check in joinable
* refactor: make ChannelTypes a proper enum
* Use createEnum
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
* chore: remove unused code from Constants
* refactor(StageChannel): remove unnecessary getters
* chore: update typings
* refactor: introduce BaseGuildVoiceChannel class
* refactor(VoiceChannel): reduce code duplication
* feat: export BaseGuildVoiceChannel
* chore: update typings
* docs: fix typos
* refactor: move setRTCRegion to BaseGuildVoiceChannel
* feat(VoiceState): remove permission checks
* chore: update typings
* Apply suggestions from code review
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
* chore: update esm exports and typings
* Update src/structures/VoiceState.js
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Advaith <advaithj1@gmail.com >
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-04-14 13:35:55 +01:00
Carson M
2b52cdc915
fix(Voice): only skip undocumented voice packet byte if present ( #5309 )
...
* fix(Voice*): Only skip undocumented byte if present
* fix linting errors
2021-04-05 08:56:48 +01:00
Amish Shah
3af8179878
fix(Voice): disconnect if voice channel not cached ( #5467 )
2021-04-02 12:53:49 +02:00
Souji
6c6b1053b7
fix(InviteDelete): guild can be missing ( #5457 )
2021-03-31 22:31:37 +02:00
Alec Woods
9d2d60691e
feat(Rest): better handling of global rate limit and invalid request tracking ( #4711 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-03-31 21:56:58 +02:00
Jan
06e9d86cb3
feat(Application): application flags ( #5147 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-03-31 21:55:12 +02:00
Souji
624a4464ca
feat(WebSocketManager): let identify throw on depleted limits ( #5283 )
...
* feat(WebSocketManager): let identify throw on depleted limits
* chore: remove WSM#sessionStartLimit
2021-03-28 15:33:31 +02:00
Sugden
ee5bc1a5c4
refactor: switch api and gateway to V8 ( #4879 )
...
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2021-02-11 18:10:35 +01:00
ckohen
ae3c3d80ee
feat(Client): add InviteGenerationOptions#additionalScopes ( #5215 )
...
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-02-10 15:52:44 +01:00
BannerBomb
56d8b445ed
fix(WebSocketShard): key name in WebSocketShard#_send. ( #5304 )
...
I just changed an incorrect key name that was introduced in Pull Request #3722 . When destroying the websocket from the WebSocketShard#_send method it's using `close` as the key name instead of `closeCode`
2021-02-10 15:48:16 +01:00
Matt (IPv4) Cowley
aaed72b723
refactor(Client): remove fetchAllMembers option ( #5257 )
...
* feat(Client): remove fetchAllMembers option & logic
* Cleanup
* Missed type change
2021-01-27 11:27:50 +01:00
Papaia
9ffcd83027
docs(BitFields): remove string from BitFieldResolvable ( #5122 )
...
* refactor(BitFields): remove string from BitFieldResolvable
* docs(Client#generateInvite): fix indentation in example
* chore: resolve conflict
* refactor: revert breaking changes
Co-authored-by: Papaia <43409674+ItsPapaia@users.noreply.github.com >
2021-01-24 11:52:35 +01:00
Antonio Román
b0077dcd0c
chore(Deps): remove setimmediate ( #5159 )
...
setimmediate is a browser polyfill, and since we do not support webpack anymore, there is no reason to keep it here.
2020-12-30 11:22:11 +01:00
Matt (IPv4) Cowley
8c2e6b70b8
refactor(Message): remove stored edit history ( #5155 )
2020-12-30 11:21:34 +01:00
Noel
0a591a9697
feat(Browser): remove browser � ( #5113 )
2020-12-14 13:56:16 +01:00
Advaith
41078997ae
feat(APIMessage): remove disableMentions ( #4836 )
...
* chore: remove disableMentions
* style: fix eslint
2020-12-14 13:51:31 +01:00
Mirdukkk
9c7fe34c50
fix: add presence to ClientPresence from ClientOptions ( #5041 )
2020-12-13 03:14:23 +01:00
Jan
5b51392724
refactor(Client): improve generateInvite() ( #5065 )
...
* cleanup(Client): improve generateInvite()
* fix: you actually do need to fetch the application
2020-12-12 22:38:57 +01:00
Jan
bb04e69a92
cleanup(Guild): remove Guild#voice ( #5091 )
2020-12-12 14:49:32 +01:00
Advaith
2685b960d7
docs(Client): #emojis is a BaseGuildEmojiManager ( #5048 )
2020-12-08 22:07:06 +01:00
Advaith
9f3c3e0918
docs(WebSocketManager): fix type of status ( #5059 )
2020-11-30 01:08:54 +01:00
Amish Shah
4fcb9ebf30
fix(Voice*): filter out silent audio from video users ( #5035 )
2020-11-25 23:51:16 +01:00
Jan
8d650a7250
feat: BaseGuildEmojiManager ( #4934 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2020-11-22 19:48:30 +01:00
anandre
8c8883ef26
Remove Guild#member ( #4890 )
2020-11-22 19:21:01 +01:00
izexi
2b2994badc
feat: add support for guild templates ( #4907 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2020-11-21 15:09:56 +01:00
SpaceEEC
2e940e635d
fix(GuildMemberUpdate): cache incoming members & use partials if enabled ( #4986 )
...
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-11-20 16:20:47 +01:00
SpaceEEC
8b91ac5d7e
fix(MessageReaction*Action): correctly cache incoming members and users ( #4969 )
2020-11-20 16:19:18 +01:00
monbrey
3d158f4448
fix(Action): attempt to get a User if GuildMember not returned ( #4922 )
2020-10-24 06:25:35 +02:00
Sugden
af670fc718
refactor: improve the accuracy of docs/improve docs ( #4845 )
...
Co-authored-by: Noel <icrawltogo@gmail.com >
2020-10-17 15:53:02 +02:00
Jiralite
6261dd65d3
fix(GuildEmojiCreate): Prevent double fire from emoji creation ( #4863 )
2020-10-17 15:40:04 +02:00
Adrian Paschkowski
dd12912124
fix(Actions): Avoid crash in InviteCreate with unknown channel ( #4882 )
2020-10-17 15:36:02 +02:00
Matt (IPv4) Cowley
c412cd7521
feat(Message): add messageEditHistoryMaxSize to limit stored msg edits ( #4867 )
2020-10-17 15:34:49 +02:00
MrWasdennnoch
4e79e39e22
fix(Action): Sanity-Check if Discord includes all required data ( #4841 )
2020-09-25 23:42:49 +02:00
MrWasdennnoch
8fa3a89482
fix(Action): Don't crash when partials are disabled ( #4822 )
2020-09-15 18:35:20 +02:00
MrWasdennnoch
eeb4c14754
fix(Partials): Use more user objects available from the gateway ( #4791 )
2020-09-13 12:09:12 +02:00
Tristan Guichaoua
405b487dc3
fix(Typing): change NodeJS.Timer into NodeJS.Timeout ( #4755 )
2020-08-29 18:54:39 +02:00
Sugden
46acfac327
refactor(Client): remove non-existant property from toJSON ( #4750 )
2020-08-28 14:18:17 +02:00
Sugden
727b29c85d
feat(Client): allow options for generateInvite ( #4741 )
2020-08-28 14:17:37 +02:00
Noel
dea48d64a5
chore(Deps): upgrade deps ( #4701 )
2020-08-14 21:46:23 +02:00
Advaith
178439ef8c
feat: trigger userUpdate on GUILD_MEMBER_UPDATE ( #4697 )
2020-08-14 20:49:44 +02:00
Arthur
6caeaeb391
fix(MessageReactionAdd): prevent double messageReactionAdd triggering ( #4682 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-08-12 21:24:45 +02:00
Advaith
57ca3d7843
feat(Guild): updates for Community guilds ( #4377 )
...
Co-authored-by: SpaceEEC <spaceeec@users.noreply.github.com >
2020-08-12 12:21:17 +02:00
Jan
9d747d14c5
docs(Client): fix docs for login method ( #4350 )
2020-08-11 23:36:25 +02:00
Sugden
c5b6c4da43
fix: correctly import VoiceState ( #4616 )
2020-08-11 22:59:03 +02:00
Phineas
ea19faa411
Change domain to discord.com ( #4160 )
2020-06-19 11:46:59 +02:00
Souji
16847a3c13
fix: typing start event emitting on non text based channels ( #4349 )
2020-06-19 11:42:06 +02:00
Papaia
2583ad5da7
docs(WebSocketShard): add missing properties ( #4268 )
2020-05-09 17:23:32 +02:00
SpaceEEC
407bc77d34
fix: in/de-crement max listener for client events ( #4168 )
2020-05-07 23:39:23 +02:00