Shubham Parihar
a5a6e22316
fix(*): typedefs and typings for image & webhook options ( #5805 )
2021-06-11 23:22:01 +01:00
Antonio Román
fdef940127
refactor: remove all voice code ( #5818 )
...
* refactor: remove all voice code
* refactor: remove even more remnants
2021-06-11 23:21:34 +01:00
Shubham Parihar
ffabec3a5e
feat(Guild): add enum for mfa_level ( #5797 )
2021-06-10 17:19:08 +01:00
Shubham Parihar
e0ab836b2d
feat: add new APIErrors ( #5794 )
2021-06-10 17:05:37 +01:00
Adam Gauthier
dda5ee2e9f
refactor: guildAvailable, typingStop from Constants ( #4861 )
...
Both of these events no longer exist and should not be exposed in
Constants. Typings have been adjusted to correspond to Constants.Events.
2021-06-09 10:43:57 +01:00
Ven
16f261e773
feat(Rest): optional ratelimit errors ( #5659 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2021-06-09 08:45:04 +01:00
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
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
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
Yoshida Tomio
cb50241e6f
fix(HTTPOptions): change default value in jsdoc to 8 ( #5547 )
2021-04-20 19:37:45 +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
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
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
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
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
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
InkoHX
cfc68677ee
docs(ClientOptions): fix typo ( #4730 )
2020-08-27 16:39:55 +02:00
Advaith
f991bd46f3
chore(Constants): update large_threshold default ( #4698 )
2020-08-13 20:38:59 +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
Phineas
ea19faa411
Change domain to discord.com ( #4160 )
2020-06-19 11:46:59 +02:00
Evan
b0b62d63cf
chore(docs): remove comment about type 13 ( #4159 )
2020-05-21 13:18:06 +02:00
Ryan Munro
7c6000c5e3
feat(ClientOptions): allow setting default allowedMentions ( #4085 )
...
* feat(ClientOptions): add default allowedMentions
* feat(ClientOptions): use default allowedMentions when not provided
* Update src/structures/APIMessage.js
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* Update src/structures/APIMessage.js
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* fix(ClientOptions): default allowedMentions should be undefined
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-04-17 11:23:31 +02:00
Roki
1330e2d246
feat: add supported 4096 image size and jpeg format ( #4031 )
...
* add 4096 avatar size that discord supports
* jpeg is also a thing
* update jsdocs
* update typings and remove duplicate type
2020-04-12 22:20:31 +02:00
SouSinner
88133d0d77
feat(GuildPreview): implement support for "preview" endpoint ( #3965 )
...
* feat(GuildPreview): method — fetchGuildPreview
* feat(GuildPreview): structure — GuildPreview
* feat(GuildPreview): update typings
* fix(GuildPreview): remove typedef for Features — already exists
* refactor(GuildPreview): update JSDocs & method
* feat(GuildPreview): implement DiscoverySplash function
* fix(GuildPreview): description & error handling for id
* fix(GuildPreview): misleading description, assign emojis correctly
* feat(GuildPreview): func DisplaySplash & GuildPreviewEmoji interface
* fix(Typings): satisfy TSLint
* fix(GuildPreview): toJSON - returns a value now
* feat(GuildPreview): add fetchPreview method on instance of Guild
* feat(GuildPreview): update typings
* fix: missing client constructor
* fix: typo in typings
* feat(BaseEmoji): implement BaseEmoji — parent for emoji instances
* feat(BaseEmoji): refactor - GuildEmoji extends BaseEmoji now
* feat(BaseEmoji): refactor - adjust emojis prop to BaseEmoji instance
* feat(BaseEmoji): not documented fully - GuildPreviewEmoji
* feat(BaseEmoji): update typings
* fix: remove duplicate typing properties - inherited
* fix: remove redundant methods & properties - inherited / already set
* fix: let -> const
* fix: typings - put BaseEmoji after BaseClient
* fix: remove _clone method - redundant
* refactor(GuildPreview): emojis should be a collection
* refactor: rename base class, move relevant props there and expose roles
* fix(GuildPreview): update emojis in _patch
* fix(Typings): remove empty line, add Client#fetchGuildPreview
* feat: export GuildPreview
* fix(Typings): add GuildPreview#discoverSplash, icon, and splash
Co-authored-by: LxveFades <twitchisadeck@gmail.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-03-27 20:57:28 +01:00
Jyguy
fee9a218e8
docs(MessageMentionTypes): move possible values to description ( #3990 )
...
* docs(MessageMentionTypes): correct type
* docs(MessageMentionTypes): change role to roles
* docs(MessageMentionOptions): correct description to allow usage as an array
* remove unneeded part of description
Co-Authored-By: Ryan Munro <rsm999@uowmail.edu.au >
* docs: add DisableMentionType to remove literal string types
Co-authored-by: Ryan Munro <rsm999@uowmail.edu.au >
2020-03-27 20:54:27 +01:00
Saya
f4b1b398d9
feat: document intent error code messages ( #3871 )
...
* Add 4013, Invalid Intents close code
* Add 4014, Disallowed Intents Code
* Add error messages for 4013 & 4014
* Rephrase invalid & disallowed intent error message
* Rephrase disallowed intent error message
2020-03-01 17:21:48 +00:00
Souji
8a2f8938be
feat: Intents bitfield ( #3844 )
...
* feat: Intents bitfield
* suggestion: properly construct Intents.ALL
* fix: actually document the ws option
* suggestion: remove disabledEvents in favor of intents
* suggestion: remove obsolete check, validate falsy values
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* fix: GUILD_BANS flag
* fix: exception for intents check in ws options
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* docs: IntentsResolvable
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* Update Client.js
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-02-29 15:20:15 +01:00
Crawl
c065156a88
chore: consistency/prettier ( #3852 )
...
* chore: consistency/prettier
* chore: rebase
* chore: rebase
* chore: include typings
* fix: include typings file in prettier lint-staged
2020-02-29 14:35:57 +01:00
Papa
9c8aaf1bbc
feat: reimplement disableEveryone into disableMentions
...
* User input sanitation: reimplement disableEveryone into disableMentions
* Change default value of ClientOptions#disableMentions to 'none'
* Update type declarations of disableMentions to include default
* update for compliance with ESLint
* Overlooked these files. Updated for complete compliance with ESLint
2020-02-29 14:20:39 +01:00
Sugden
2ee0f1cdc6
feat(GuildManager): Allow for more options for GuildManager.cre… ( #3742 )
...
* typings: add GuildVerificationLevel and GuildExplicitContentFilter
* implement new types
* fix jsdoc on stores
* typo
* add more options for GuildStore#create
* add channels and roles
* update typings
* fix typings and use snake case for permissionOverwrites
* typings & jsdoc
* fix tslint
* remove trailing whitespace
* fix jsdoc
* fix jsdoc
* fix oopsies
* fix lint
* fix lint
* fix mr lint man
* add typedefs and support for setting channel parents
* fix tab indenation
* update jsdoc
* suggested changes
* style: fix silly format
* docs(PartialChannelData): name is not optional
* style: remove silly format
2020-02-29 07:43:42 +01:00
Timo
9cb306c823
feat: replace disableEveryone with disableMentions ( #3830 )
...
* add ClientOptions#disableMentions and MessageOptions#disableMentions
* provide tests
* don't sanitize controlled mentions
* add @here mentions to tests
* fix indents (6 spaces instead of 8)
* add Util#cleanContent tests
* add typings for removeMentions
* replace @ with @\u200b AFTER cleaning content as suggested instead of using removeMentions
* better explanation of this option
* no newline in Util.removeMentions
* fix long line
* remove double space
* remove comments (change has been reverted)
* Use Util.removeMentions to remove mentions
* use Util.removeMentions in Util.cleanContent
2020-02-26 11:13:23 +00:00
Sugden
ef8acecc70
feat: add new MessageTypes (14 and 15) ( #3812 )
...
* document types
* typings
* move comment
2020-02-22 12:31:51 +01:00
Sugden
c4c6ad4a63
docs/typings(WSEvents): add missing, remove duplicated and userbot events ( #3800 )
...
- Added `MESSAGE_REACTION_REMOVE_ALL`
- Remove duplicated `VOICE_STATE_UPDATE`
- Remove userbot `USER_SETTINGS_UPDATE`
2020-02-17 14:15:59 +01:00
Vlad Frangu
21d37ed0cc
docs: clarify what zlib-sync does ( #3785 )
...
* docs: Clarify what zlib-sync does
* docs: Update docs site welcome
* src/docs: Remove `ws.compress` from docs
This is a deprecated parameter and you shouldn't use it unless you have zlib-sync installed, and even then, compression is automatically enabled
* docs: Apply suggestion
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-02-13 22:48:36 +01:00
Sugden
6770c7c786
typings: add invite events to WSEventType and constants ( #3782 )
...
* fix event typings
* add ws events to jsdoc
2020-02-13 22:46:46 +01:00
BorgerKing
3f8ea38b3a
docs: info tag for ActivityType regarding CUSTOM_STATUS ( #3757 )
2020-02-12 22:23:06 +01:00