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
Kevin
ec0227a476
feat(GuildMemberManager): nonce and chunk_count for _fetchMany ( #4130 )
...
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
2020-05-04 12:48:33 +02:00
sillyfrog
d3c9384c9c
fix(Voice): correctly set speaking data in the voice ssrcMap
...
Co-authored-by: Sillyfrog <sillyfrog@users.noreply.github.com >
2020-04-30 17:21:29 +01:00
Alon L
e3303ac3a2
fix(Typing): setSpeaking public ( #4109 )
2020-04-24 08:44:37 +01:00
RDambrosio
5af1a552bc
fix(PacketHandler): guild members chunk packet handler should… ( #4092 )
2020-04-19 12:25:32 +02:00
Vlad Frangu
e5fac8c32f
chore(WebSocketShard): log Discord requested reconnects ( #4066 )
2020-04-12 20:57:50 +02:00
Amish Shah
0e44ecd420
chore: fix typings/docs for VoiceBroadcast ( #4014 )
2020-04-03 11:19:24 +01: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
didinele
65e8c92d7c
fix(WebsocketShard): pass ignore ACK when Discord asks for a beat ( #3993 )
2020-03-25 12:55:20 +01:00
SpaceEEC
215740157b
fix: always emit guildUnavailable when a guild becomes unavailable ( #3975 )
2020-03-21 11:31:34 +00:00
C eq Q divided-by U
495cfa96c2
fix(TypingStart): typing methods returning falsy values ( #3939 )
...
* fix: typing methods returning falsy values
* fix: eslint
* fix: no provided parameters; updated jsdocs
* fix(Typings): reflect typingStop
* refactor: since and lastTimestamp merged into one constructable value
* feat(Typings): document Channel#_typing
* feat: emit TypingData on typingStart; update jsdocs
* feat(Typings): move _typing to TextBasedChannel; sort props alphabetic
* feat(Event): remove typingStop
* feat(Typings): update typings - remove typingStop
* feat(Event): remove typingStop from Constants
* feat(Typing): remove TypingData class - redundant
* refactor(Events): remove TYPING_STOP event
* refactor(TypingData): now is an interface for _typing
* fix(TypingStart): timeout variable, removed emit for TypingData
* feat(Typing): timeout property on Channel#_typing, remove redundancy
* fix(Typings): extra overload(s)
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* Update index.d.ts
* fix(Typings): remove "private" from interface — invalid TS
* feat(Typings): add PartialUser in case partials are enabled
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* feat(Typings): document 'timeout' property of TypingData
Co-authored-by: Crawl <icrawltogo@gmail.com >
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-03-21 09:52:40 +01:00
Crawl
7994b5612a
docs(PlayInterface): update example for broadcast
...
Co-authored-by: Carter <45381083+Fyko@users.noreply.github.com >
2020-03-17 09:13:19 +01:00
SpaceEEC
69d415301d
perf(VoiceConnection): skip redundant volume transformer on join ( #3916 )
2020-03-08 17:40:06 +00:00
SpaceEEC
713309e7bb
fix(playinterface): lazy require VoiceBroadcast to avoid circul… ( #3864 )
2020-02-29 19:07:23 +01: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
izexi
de4b4a0939
feat(GuildMemberStore): add options.withPresences to fetch() ( #3562 )
...
* feat: add options.withPresences to fetch()
feat: update presences if present on received data
typings: add user & withPresences to FetchMembersOptions
fix: checking for added options
ref: qol changes to return type
so that all members are fetched
oopsie
* fix: use Manager.cache
* fix(typings): tslint error
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-02-29 14:18:37 +01:00
Sugden
1af1e0cbb8
refactor: add some more consistency ( #3842 )
...
* cleanup(StreamDispatcher): remove old 'end' event
* fix(StreamDispatcher): only listen to finish event once
* refactor(VoiceWebSocket): use `connection.client` in favour of `connection.voiceManager.client`
* fix(VoiceWebSocket): use `client.clearInterval` in favour of `clearInterval`
* refactor: destructure EventEmitter
* refactor: destructure EventEmitter from events
* refactor: use EventEmitter.off in favour of EventEmitter.removeListener
* style: order typings alphabetically
* oops
* fix indent
* style: alphabetically organize imports
* style: remove extra line
* Revert "style: remove extra line"
This reverts commit 96e182ed69 .
* Revert "style: alphabetically organize imports"
This reverts commit 02aee9b06d .
* Revert "refactor: destructure EventEmitter from events"
This reverts commit 9953b4d267 .
* Revert "refactor: destructure EventEmitter"
This reverts commit 930d7751ab .
* Revert "fix(StreamDispatcher): only listen to finish event once"
This reverts commit 485a6430a8 .
* refactor: use .removeListener instead of .off
2020-02-28 18:02:51 +01:00
Amish Shah
653784b564
chore(StreamDispatcher): remove end event
...
use finish event instead
2020-02-26 20:00:48 +00: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
Crawl
3a0470b45c
chore(deps): update deps and fix lint ( #3833 )
2020-02-24 23:14:31 +01:00
Sugden
02807347e7
fix: Client#sweepMessages should throw an INVALID_TYPE error ( #3828 )
...
* fix(Client): sweepMessages shouldn't shrow an invalid client option error
* style: trailing commas
2020-02-24 18:27:15 +01:00
Sugden
0a1b9a5285
refactor: remove unused error in catch statements ( #3820 )
...
* refactor(handlers): remove unused error in catch
* refactor(PacketHandler): remove unused error
* refactor(SecretBox): remove unused error
* refactor(ClientPresence): remove unused error
* style: remove space
Co-Authored-By: Crawl <icrawltogo@gmail.com >
Co-authored-by: Crawl <icrawltogo@gmail.com >
2020-02-24 18:15:38 +01:00
Vlad Frangu
e4e977f447
src: update client options and shards value if fetching shard count ( #3787 )
...
* src: Update client options and shards value if fetching shard count
* src: Fix bug and remove more dead code
2020-02-16 19:41:37 +01:00