Rodry
1d57754d46
fix(Interaction): add missing types and fix docs lists ( #5762 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-05 21:05:27 +01:00
monbrey
cbd7f2b9aa
feat(MessageComponents): clickybois (MessageButton, MessageActionRow, associated Collectors) ( #5674 )
...
Co-authored-by: Vicente <33096355+Vicente015@users.noreply.github.com >
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: BannerBomb <BannerBomb55@gmail.com >
Co-authored-by: Arechi <22101241+Arechii@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2021-06-04 16:49:46 +01:00
Souji
7b85a7259f
feat(*): enforce strings ( #4880 )
...
BREAKING CHANGE: Removes all Resolvables for only string inputs
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-01 16:31:49 +01:00
Vanished
e300518597
Added Certified Moderator badge flag. ( #5642 )
...
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com >
2021-05-29 15:29:29 +01:00
Rodry
7d9818e21a
docs(ColorResolvable): Add Fuchsia to ColorResolvable typedef ( #5676 )
...
Also moved DARKER_GREY to its place in the Colors export on Constants.js
2021-05-27 12:13:58 +01:00
Shubham Parihar
3fe7add2c5
feat(Guild): add the new nsfw_level property ( #5660 )
...
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
Co-authored-by: Noel <icrawltogo@gmail.com >
2021-05-27 12:12:52 +01:00
cherryblossom000
b376f31af9
fix(DataResolver): fix circular dependency error with GuildTemplate ( #5622 )
2021-05-22 21:40:44 +02:00
Casper
38bf24a6e5
chore(Colors): use new Discord colors ( #5624 )
...
* chore(Colors): use new Discord colors
* chore(Colors): add fuchsia color
* chore(Colors): add fuchsia color to ColorResolvable
2021-05-22 09:52:48 +02:00
Advaith
135abccd9c
feat(APIRequest): support setting global headers in HTTPOptions ( #5586 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2021-05-10 10:56:56 +02:00
Jan
9f74f95f69
feat: add support for application command events ( #5596 )
2021-05-08 01:25:27 +02:00
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
Junseo Park
026afc2c1a
feat(Sticker): added Sticker ( #4909 )
...
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: monbrey <rsm999@uowmail.edu.au >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
Co-authored-by: Advaith <advaithj1@gmail.com >
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com >
Co-authored-by: Mestery <48163546+Mesteery@users.noreply.github.com >
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com >
2021-04-30 21:53:25 +02:00
Souji
2c54f72670
chore(UserFlags): remove system flag ( #5517 )
2021-04-25 18:59:13 +02:00
Yoshida Tomio
cb50241e6f
fix(HTTPOptions): change default value in jsdoc to 8 ( #5547 )
2021-04-20 19:37:45 +02:00
Advaith
f1c0c043b5
feat(Util): make cleanContent take a channel instead of a message ( #5535 )
2021-04-18 18:53:09 +02:00
Jan
164ddf668f
refactor: rename Snowflake to SnowflakeUtil ( #5502 )
2021-04-15 00:37:54 +02:00
Souji
fe93a7e084
feat(SysChanFlags): new flag and rename in sync with client ( #5506 )
2021-04-15 00:37:32 +02:00
Jan
207735cedc
feat: move internal regular expressions to static properties ( #5384 )
2021-04-15 00:36:35 +02:00
Advaith
c9107e35fa
feat(MessageTypes): add 16 and 17 ( #4685 )
2021-04-14 14:53:30 +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
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
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
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
Jan
a33eed71af
refactor(Util): remove convertToBuffer ( #5237 )
2021-01-24 11:48:03 +01:00
Souji
273e9557be
feat(BitField): move problematic bit into the error message ( #5228 )
...
* feat(BitField): move problematic bit into the error message
* fix: remove intermediate constant
2021-01-22 17:44:50 +01:00
Matt (IPv4) Cowley
8c2e6b70b8
refactor(Message): remove stored edit history ( #5155 )
2020-12-30 11:21:34 +01:00
Jan
2c2249ee73
fix(Collection): toJSON() errors if the collection includes empty values ( #5129 )
2020-12-26 10:56:37 +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
X-Classified
bb78120283
fix(Message): #system non-zero message types are not guaranteed to be system ( #5108 )
...
* fix(Message): #system not all nonzero message types are system
* feat(Message): introduce system message types
* refactor(Constants): change SystemMessageTypes to be exclusionary
* fix(Constants): only need to check if type exists
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
* fix(Constants): lint
* fix(Typings): add SystemMessageTypees to Constants
Co-authored-by: Jan <66554238+Vaporox@users.noreply.github.com >
2020-12-12 22:40:39 +01:00
SpaceEEC
b509862bfa
fix(UserFlags): correct early bot dev name, remove deprecated aliases ( #5104 )
2020-12-12 14:48:03 +01:00
monbrey
60e5a0e46f
feat(Message|TextChannel): Inline replies ( #4874 )
...
* feat(Message): remove reply functionality
* feat(InlineReplies): add INLINE_REPLY constant/typing
* feat(InlineReplies): add Message#replyReference property
* feat(InlineReplies): add typings for sending inline replies
* feat(InlineReplies): provide support for inline-replying to messages
* feat(Message): add referencedMessage getter
* fix: check that Message#reference is defined in referencedMessage
* refactor(InlineReplies): rename property, rework Message resolution
* docs: update jsdoc for inline replies
* feat(Message): inline reply method
* fix(ApiMessage): finish renaming replyTo
* fix: jsdocs for Message#referencedMessage
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
* fix: restore reply typings
* fix: dont pass channel_id to API when replying
* chore: update jsdocs
* chore: more jsdoc updates
* feat(AllowedMentions): add typings for replied_user
* fix: naming conventions
* fix(Message): referenced_message is null, not undefined
* fix(MessageMentionOptions): repliedUser should be optional
* chore: get this back to the right state
* fix(ApiMessage): pass allowed_mentions when replying without content
* fix(ApiMessage): prevent mutation of client options
Co-authored-by: almostSouji <timoqueezle@gmail.com >
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com >
2020-12-08 21:08:26 +01:00
Matt (IPv4) Cowley
2a6c363a8a
feat(Shard): shard-specific broadcastEval/fetchClientValues + shard Id util ( #4991 )
2020-11-22 13:35:18 +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
Sugden
7faa73a561
feat: add missing error codes ( #5008 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-11-20 16:18:13 +01:00
Matt (IPv4) Cowley
c412cd7521
feat(Message): add messageEditHistoryMaxSize to limit stored msg edits ( #4867 )
2020-10-17 15:34:49 +02:00
Advaith
9c76129a23
feat(ActivityTypes): add Competing (type 5) ( #4824 )
2020-09-15 18:33:52 +02:00
Souji
77b6a7d5bd
fix(Util): throw token invalid for fetching rec. shard amount ( #4779 )
2020-09-04 12:51:15 +02:00
Sugden
f97316319f
feat(UserFlags): add renamed UserFlags ( #4761 )
2020-08-30 00:34:37 +02:00
Carter
74ebb650df
style: remove unnecessary eslint comment ( #4758 )
2020-08-29 12:05:33 +02:00
InkoHX
cfc68677ee
docs(ClientOptions): fix typo ( #4730 )
2020-08-27 16:39:55 +02:00
Noel
dea48d64a5
chore(Deps): upgrade deps ( #4701 )
2020-08-14 21:46:23 +02:00
Advaith
f991bd46f3
chore(Constants): update large_threshold default ( #4698 )
2020-08-13 20:38:59 +02:00
Souji
0225851e40
feat(BitField): add problematic bit to error ( #4617 )
2020-08-12 12:37:01 +02:00
Advaith
de8d26d791
docs(Constants): Improve large_threshold description ( #3744 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-08-12 12:17:13 +02:00
samsamson33
03580b23a3
feat(Util): add missing colors to docs ( #3843 )
...
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-08-11 23:40:07 +02:00
Erwann Hilley
1fbaf8816e
feat: add Blob support for browser ( #4338 )
...
Co-authored-by: Papaia <43409674+Papaia@users.noreply.github.com >
2020-08-11 23:00:12 +02:00