Amish Shah
949488bbbd
Fix #3218
2019-05-27 14:04:13 +01:00
Amish Shah
1ce670daa9
Create FUNDING.yml
...
Just trialling it out
2019-05-26 10:33:58 +01:00
Will Nelson
9ca36b8eea
typings(VoiceState): add connection getter ( #3292 )
...
* fix: add connection to voice state typings
* Update typings/index.d.ts
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
2019-05-25 16:18:44 +02:00
izexi
3f1232ebf3
feat: throw custom error for uncached Guild#me ( #3271 )
...
* handle cases where Guild#me is uncached
* fix id prop
* remove unnecessary checks
* space's requested changes
2019-05-25 13:50:32 +02:00
anandre
34006cb51e
docs(StreamDispatcher): specify pausedTime is in milliseconds ( #3295 )
...
* Update TextChannel.js
Update `setRateLimitPerUser` description to specify the `number` is in seconds, per the Discord docs
* Update TextChannel.js
Add unit to the rateLimitPerUser property
* Update GuildChannel.js
* Update StreamDispatcher.js
Specify unit for `StreamDispatcher.pausedTime`
2019-05-24 20:33:40 +02:00
SpaceEEC
97f3b6c5eb
typings(Guild): remove voiceConnection, add voice, cleanup rest
...
Fixes #3293
2019-05-24 15:42:09 +02:00
Antonio Román
b3060ea229
typings(Collection): use T in accumulator and initialValue when reducing ( #3284 )
...
This brings some consistency with Array#reduce's typings and to reality.
2019-05-20 20:49:28 +02:00
bdistin
8c213e9088
fix(Message#pinnable): you can't pin system messages ( #3279 )
2019-05-18 19:06:15 +02:00
bdistin
abebeac193
fix(Message#pinnable): you can't pin system messages ( #3279 )
2019-05-18 19:02:23 +02:00
SpaceEEC
06b72ee19f
fix(GuildMember): do not create a channel key when editing
...
This is to not break GuildMember#setNickname for the current user
2019-05-18 14:08:50 +02:00
SpaceEEC
3ad16fa351
fix(GuildMember): do not create a channel key when editing
...
This is to not break GuildMember#setNickname for the current user
2019-05-18 14:08:12 +02:00
didinele
97de79bd5e
fix(typings): Guild#member can return null ( #3274 )
...
* fix(typings): Guild#member did not have undefined as a return type
* oops, it can apparently return null
2019-05-16 21:14:45 +02:00
SpaceEEC
1bafa4b86b
fix(READY): do not overwrite Client#user when reidentifying
...
See #3216 , this commit attempts to fix losing ClientUser#_typing, which results in no longer being able to clear typing intervals
2019-05-16 19:56:19 +02:00
Fong Jian Ping
e3d03adcf8
docs(ChannelCreationOverwrites): revert incorrect rename of "id" property ( #3273 )
...
Reverts one incorrect change made in #2734 (3021e5ce7f (diff-e5c54069adfa0d32480eb3cc9faeee20L979) )
* Fix incorrect docs in Guild.js
* Update src/structures/Guild.js
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* Update Guild.js
2019-05-16 13:06:07 +02:00
anandre
363cec31bc
docs(TextChanne): specify unit of rateLimitPerUser ( #3272 )
...
* Update TextChannel.js
Update `setRateLimitPerUser` description to specify the `number` is in seconds, per the Discord docs
* Update TextChannel.js
Add unit to the rateLimitPerUser property
* Update GuildChannel.js
2019-05-15 22:42:39 +02:00
anandre
55447fd4da
docs(TextChanne): specify unit of rateLimitPerUser ( #3272 )
...
* Update TextChannel.js
Update `setRateLimitPerUser` description to specify the `number` is in seconds, per the Discord docs
* Update TextChannel.js
Add unit to the rateLimitPerUser property
* Update GuildChannel.js
2019-05-15 22:33:27 +02:00
SpaceEEC
16fcfa3db3
fix(WebSocketManager): rethrow unknown errors when connecting a WebSocketShard
2019-05-15 22:13:12 +02:00
SpaceEEC
c844a7b4e2
docs(Guild): fix typo in example of createChannel
2019-05-14 20:12:57 +02:00
Amish Shah
72dd872fce
VoiceBroadcast.{dispatchers -> subscribers}
2019-05-12 20:29:28 +01:00
Schuyler Cebulskie
e82633fb00
Bump version to 11.5.0
11.5.0
2019-05-11 19:05:10 -04:00
Schuyler Cebulskie
b2f89e4594
Add testing for Node.js 8-12
2019-05-11 19:00:03 -04:00
Schuyler Cebulskie
8fba786765
Update typings for news/store channels
2019-05-11 18:56:14 -04:00
Schuyler Cebulskie
43f2485c9c
Document news/store channel types on Guild#createChannel
2019-05-11 18:11:34 -04:00
Schuyler Cebulskie
8a086e04ab
Add news/store channel support to CHANNEL_CREATE
2019-05-11 18:11:19 -04:00
Schuyler Cebulskie
f30019dd4f
Remove unnecessary import
2019-05-11 17:24:25 -04:00
Schuyler Cebulskie
5e4654ee07
Backport news/store channels
2019-05-11 14:58:46 -04:00
izexi
75d5598fda
import TextDecoder from Util ( #3258 )
2019-05-08 21:03:18 +01:00
izexi
0dd3ed72ef
fix(Partials): Client#event:messageUpdate(oldMessage) and MessageReactionAdd on guild channels ( #3250 )
...
* ref: add getPayload and use for other get* methods
* return existing data.*
* use Action.getUser()
2019-05-07 20:56:39 +01:00
Gus Caplan
3d4513268d
Add optional zstd for faster WebSocket data inflation ( #3223 )
...
* zstd
2019-05-07 14:30:34 +01:00
Darqam
8915bc1d37
docs:(Client): disambiguate the description of channels collection ( #3251 )
...
* Disambiguate the description of <client>.channels
Although not explicitly said, the current wording makes it seem like all channels are cached and available at any time in this store. Hopefully this variation makes it a bit clearer.
* make more explicit (I think)
* remove trailing white spaces
2019-05-06 20:08:56 +02:00
SpaceEEC
ee42bdfd76
feat(GuildMember): add support for voice kicking ( #3246 )
...
This backports e64773e21b (#3242 )
2019-05-06 19:18:29 +02:00
SpaceEEC
67da457c0a
fix/docs(Client): type status and do not throw an error if accessed before login
2019-05-05 13:44:34 +02:00
SpaceEEC
60013b7a10
fix(WebSocketConnection): stringify data when no websocket is available
...
[object Object] is not really descriptive
2019-05-04 21:00:49 +02:00
SpaceEEC
8b83e2fdcb
typings(Presence): add missing guild property
2019-05-04 19:05:04 +02:00
Amish Shah
e64773e21b
Add ability to kick members from VoiceChannels and remove duplicated methods ( #3242 )
...
* feat(voice): kick members from voice channels
* fix(VoiceState): improve stability in checking for client user
* feat(VoiceState): add setChannel for moving/kicking members
* update typings
* remove duplicated methods across GuildMember and VoiceState
member.setDeaf => member.voice.setDeaf
member.setMute => member.voice.setMute
member.setVoiceChannel => member.voice.setChannel
2019-05-04 16:46:42 +01:00
Amish Shah
d7f8fd1ae0
fix #3244
2019-05-04 16:21:49 +01:00
izexi
176fc47699
feat(Actions): use partials for messageDeleteBulk ( #3240 )
...
* make use of partials
* don't cache the messages
* pass each message within the for..of iteration
2019-05-03 17:38:57 +02:00
Jacz
692494dc04
feat(VoiceState): self mute/deaf methods ( #3243 )
...
* Implemented setSelfMute/Deaf, done typings, fixed bug in VoiceState with errors.
* Completed requested changes
* return send in sendVoiceStateUpdate so its a promise, update typings
* Updated methods to return a boolean
* Requested changes
* Fix bug
* Update src/structures/VoiceState.js
Co-Authored-By: MrJacz <23615291+MrJacz@users.noreply.github.com >
* fix
2019-05-03 17:11:11 +02:00
Vlad Frangu
a59968f7de
src: add news and store channels, and missing guild props ( #3168 )
...
* src: Implement store and news channels!
* src: Remove code dupe
* src: Add missing guild properties
* docs: Add a small notice that the channel type may also change
* src: Remove re-creation of the MessageStore
* lint: Unused Import
* src: Requested changes for StoreChannels
* typings: Fix typings
* src: Moar guild updates
* src: Set maximumPresence to the data prop, the already existent one, or default to 5000
* typings: afkChannel is a VC
I keep confusing them, ffs
Co-Authored-By: vladfrangu <kingdgrizzle@gmail.com >
* docs: Document that maximumMembers and maximumPresences may be inaccurate before fetching
* src Appels requested changes
2019-05-03 17:08:07 +02:00
Amish Shah
0d9bc8664d
voice: make Guild.voice more robust
2019-04-29 19:31:31 +01:00
Amish Shah
bcb0cd838b
voice: remove Guild.voiceConnection and VoiceChannel.connection
2019-04-29 19:29:16 +01:00
Amish Shah
dd44647537
voice: Guild.voiceConnection => Guild.voice.connection
2019-04-29 19:24:27 +01:00
Amish Shah
ce1e3d2084
feat(VoiceConnection): add .voice
2019-04-29 19:13:41 +01:00
bdistin
2666a9d6db
feat(MessageStore): add remove() ( #2468 )
...
* MessageStore#remove()
* typings
2019-04-29 17:53:32 +01:00
Vlad Frangu
d7a9b74523
src: Replace instanceof Array checks with Array.isArray and instanceof Buffer with Buffer.isBuffer ( #3227 )
...
* src: Replace instanceof Array checks with Array.isArray
* src: Buffer.isBuffer instead of instanceof Buffer
2019-04-29 17:49:41 +01:00
bdistin
9b0f4b298d
feature: public raw events ( #3159 )
...
* add a public alternative to the private raw event
while retaining raw for use in debugging privately
* only emit dispatch packets
* requested changes
TIL, that's neat
* fix padding
* requested changes
* Update WebSocketManager.js
2019-04-29 17:37:57 +01:00
izexi
870528ed33
feat(VoiceChannel): add editable ( #3173 )
...
* add VoiceChannel#editable
* replace unnecessary super with this
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
2019-04-29 17:35:48 +01:00
izexi
23191da13d
feat(Partials.GuildMember): GuildMemberRemove & Guild#me ( #3229 )
...
* use partials for GuildMemberRemove & Guild#me
* oops
* guild.members instead of Action.members
Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com >
2019-04-29 17:05:52 +01:00
Vlad Frangu
bc31746621
src: Client#readyAt should be updated when triggerReady is called ( #3234 )
2019-04-29 17:03:29 +01:00
Crawl
aa253d9551
fix(ClientUser): lint
2019-04-28 13:14:26 +02:00