Amish Shah
a5e8f05d01
voice: add end param to describe how a voice receive stream should end
2018-03-31 11:52:48 +01:00
Pascal
d041cb2460
fix(GuildEmojiRoleStore): do not prematurely patch roles
...
Issue is the same as in #2312 and #2381 , but for the GuildEmojiRoleStore.
Thanks to @KingDGrizzle for pointing this out.
2018-03-16 20:01:43 +01:00
Amish Shah
ef8366d189
voice: properly null-check udp socket first ( #2317 )
2018-03-13 09:48:18 +00:00
bdistin
630009f3cf
fix: Convert lastMessage to getters ( #2384 )
...
* convert lastMessage to getters
* fix bug in pr
* requested changes
2018-03-08 10:19:43 -06:00
Amish Shah
79b02dd35f
voice: resolve "cb is not a function" error ( #2317 )
2018-03-06 10:36:05 +00:00
Amish Shah
8289b70e2c
voice: resolve issue where dispatcher tried to send packets to null socket ( #2317 )
2018-03-06 10:21:44 +00:00
Amish Shah
835bff74cd
lint: remove unused import
2018-03-05 20:17:38 +00:00
Amish Shah
ff825cd8b8
voice: fix #2331 (speaking not set back to false on stream ending)
2018-03-05 19:41:35 +00:00
Amish Shah
e263063ba6
voice: update prism and fix framesize to work for opusscript
2018-03-05 19:30:18 +00:00
Will Nelson
cf7dcba1a5
Add toJSON methods ( #1859 )
...
* tojson things
* fix client
* ignore private properties
* remove extra property descriptors
* handle primitive flattening
* remove unused import
* add toJSON to collections
* reduce stateful props
* state
* allow custom prop names when flattening
* fix client
* fix build
* fix flatten docs
* remove guild.available, cleanup permissions, remove arbitrary id reduction
* fix util import
* add valueOf as needed, update member props
* fix incorrect merge
* update permissionoverwrites and permissions
remove serialization of permissions in PermissionOverwrites#toJSON.
change Permissions#toJSON to serialize permissions, by default excluding
admin checks.
* change Permissions#toJSON to return the primitive
* Permissions#toJSON explicitly return bitfield
2018-03-01 23:00:21 -06:00
nekobako
c25ea45866
fix(StreamDispatcher): emit volumeChange event when the volume changes ( #2349 )
2018-02-21 22:21:13 +01:00
Pascal
05c5bdc476
fix(StreamDispatcher): do nothing when resume is called when not paused
...
Fixes #2324
2018-02-19 18:17:51 +01:00
Sanctuary
87e5a45659
feat(ClientOptions): add support for setting an initial presence ( #2320 )
...
* docs/feat(WebsocketOptions): Parse ws options presence
Allow the `presence` property in `WebsocketOptions` to be used the same way
as `ClientUser#setPresence`.
* Move presence options to top level
2018-02-04 21:32:45 +01:00
FireController1847
92c9f8864c
Specify that Client#uptime is "in milliseconds" ( #2288 )
2018-01-24 08:24:24 +01:00
Pascal
07c48a6845
fix: require discordjserror to throw meaningful errors where necessary
2018-01-22 20:23:36 +01:00
Cat
8a2ace45d8
docs: fix VoiceBroadcast documentation ( #2277 )
2018-01-21 18:23:23 +01:00
Michel Nguyen
edc4e2b751
docs: fix streamdispatcher documentation ( #2275 )
...
* docs change
* fix streamdispatcher documentation
Signed-off-by: Michel Nguyen <modzongaming@gmail.com >
* fucks sake
Signed-off-by: Michel Nguyen <modzongaming@gmail.com >
* typings
Signed-off-by: Michel Nguyen <modzongaming@gmail.com >
* typings again 👀
Signed-off-by: Michel Nguyen <modzongaming@gmail.com >
2018-01-21 18:23:00 +01:00
Amish Shah
83de7c0d4c
Fix error messages
2018-01-21 15:52:32 +00:00
Amish Shah
76891a1e00
try fix
2018-01-21 10:34:14 +00:00
Amish Shah
aa09490724
whoops
2018-01-21 10:31:12 +00:00
Amish Shah
b2708a6fa8
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2018-01-21 10:29:06 +00:00
Amish Shah
0e262ea8d7
More informative stream errors
2018-01-21 10:29:03 +00:00
Pascal
93e083da4f
fix(Guild): memberCount not decrementing when an uncached member leaves
...
This leads to GuildMemberStore#_fetchMany to always reject
because it expects more member than possible.
Also no longer call the GuildMemberRemove handler locally
to not decrement twice.
2018-01-21 07:30:59 +01:00
Amish Shah
b16e6f8262
Fix VoiceBroadcast#play documentation
2018-01-20 16:57:27 +00:00
Amish Shah
f588b3fd20
Merge branch 'master' into voice-rewrite
2018-01-20 13:50:34 +00:00
Amish Shah
c63bdb5fb1
Remove redundant doc tag descriptions
2018-01-20 13:47:35 +00:00
Amish Shah
ca96e1478a
Make docs technically correct
2018-01-20 13:45:22 +00:00
Amish Shah
791740220e
Improve docs, allow for webm/opus demuxing and playing broadcasts without specifying a type
2018-01-20 13:01:48 +00:00
Amish Shah
f14193b93a
Document examples
2018-01-20 12:48:28 +00:00
Pascal
a22b856494
fix(WebSocketConnection): make errors in event handlers throw again
...
The error from something like client.on('ready', () => undefined.f);
would just be emitted as debug event instead of being thrown.
Simply moving the emitting part out of the try catch again solves this.
2018-01-20 09:05:07 +01:00
Amish Shah
ef02bd2935
Add stubs for docs
2018-01-20 00:05:37 +00:00
Amish Shah
2b5fc77a67
Rudimentary support for unified audio playing! 🎉
2018-01-19 23:55:59 +00:00
Amish Shah
8e5e1ad8fe
Document Receiver
2018-01-19 23:03:01 +00:00
Amish Shah
c57c2889b7
Fix import errors for networking classes
2018-01-19 22:54:54 +00:00
Amish Shah
066fbfe330
Move voice UDP client and Websocket client to networking folder
2018-01-19 22:53:55 +00:00
Amish Shah
60c5c1486b
Remove dead files
2018-01-19 22:51:53 +00:00
Amish Shah
c6c9c0918a
Fix PacketHandler runtime error (EventEmitter not imported)
2018-01-19 22:51:26 +00:00
Amish Shah
cb161a8a40
Implement Receiver debug events
2018-01-19 22:47:01 +00:00
Amish Shah
83140f11b7
Fix ESLint and inline the voice readable stream
2018-01-19 22:41:31 +00:00
Amish Shah
dd618584d0
Simplify VolumeInterface constructor
2018-01-19 22:38:39 +00:00
Amish Shah
4a1b55d145
Receiver#createStream should take options
2018-01-19 22:38:10 +00:00
Amish Shah
2c1a302eea
Redesign voice receiving, still needs cleaning up
2018-01-19 21:14:03 +00:00
Amish Shah
6058ea4888
Start voice receive rewrite
2018-01-19 17:45:37 +00:00
Amish Shah
580bda46ea
Fix documentation for VoiceBroadcast (play methods return BroadcastDispatcher not StreamDispatcher)
2018-01-19 14:40:58 +00:00
Amish Shah
3b1c5d3494
Expose VoiceBroadcast#dispatcher so that the broadcast can be controlled
2018-01-19 14:39:51 +00:00
Amish Shah
e7375aa0fd
Reimplement broadcast (un)subscribe events
2018-01-19 14:32:51 +00:00
Schuyler Cebulskie
f649610c26
Merge branch 'master' into voice-rewrite
2018-01-18 19:49:23 -05:00
SpaceEEC
aa3407f705
Base Emoji class for ReactionEmoji and renamed GuildEmoji classes ( #2230 )
...
* feat: create base Emoji class for ReactionEmoji and new GuildEmoji
* rename EmojiStore to GuildEmojiStore to account for the new class' name
2018-01-18 02:38:45 -06:00
Artful
1db0906483
Client method examples. ( #2264 )
...
* Client method examples.
* Consistency
* As per hydras request 🙇
* Thanks kya
2018-01-18 07:47:05 +01:00
Amish Shah
b94d60d2ab
Merge branch 'master' into voice-rewrite
2018-01-16 17:24:07 +00:00