Programmix
7cb5b22ebb
@Gawdl3y dun goofed ( #1099 )
2017-01-14 20:03:26 -05:00
Gus Caplan
48be401330
add clientuser acceptinvite ( #1081 )
...
* add clientuser acceptinvite
* Update RESTMethods.js
* Update ClientUser.js
* Update ClientUser.js
* Update RESTMethods.js
2017-01-14 21:25:12 +00:00
Gus Caplan
7f4846c826
Add option to filter old messages in TextBasedChannel#bulkDelete ( #1090 )
...
* add filtering for messages older than two weeks
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update TextBasedChannel.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update TextBasedChannel.js
2017-01-14 16:21:23 -05:00
Gus Caplan
78bf402e8e
allow users and members to not be cached ( #1097 )
2017-01-14 21:20:09 +00:00
Amish Shah
098ad195bd
Merge branch 'master' into indev-prism
2017-01-14 21:00:13 +00:00
Gus Caplan
e216fc7a81
stop spamming api, and kill typing when a guild isn't there anymore ( #1096 )
2017-01-14 17:31:52 +00:00
Schuyler Cebulskie
f647eb7a91
Clean up colour resolver
2017-01-13 22:55:10 -05:00
Schuyler Cebulskie
df02eee065
Fix Guild#large not being accurate for user accounts
2017-01-13 21:47:47 -05:00
Amish Shah
7357fc2163
Update typings and increase performance when not listening for presence updates
2017-01-13 19:15:21 +00:00
Amish Shah
f7a4dee4e1
Merge branch 'master' into indev-prism
2017-01-13 18:58:37 +00:00
Gus Caplan
5ac410f352
Cleanup webhooks ( #1094 )
...
* clean up webhooks and fix sending messages with webhooks
* whoops
* fix up options
* Update Webhook.js
* Update Webhook.js
* Update Webhook.js
* fix docstring
2017-01-13 18:48:12 +00:00
Schuyler Cebulskie
74fd0421ba
Add missing descriptions
2017-01-13 00:18:00 -05:00
Gus Caplan
0d4eab8d24
add color resolvable, and color constants from the client ( #1080 )
...
* add color resolvable, and color constants from the client
* fix up docs
* Update ClientDataResolver.js
* add easter eggs
* Update ClientDataResolver.js
* Update RESTMethods.js
2017-01-12 18:43:22 +00:00
Gus Caplan
a3091f5262
Handle 4011 ws event code ( #1083 )
...
* 4011
* Update WebSocketManager.js
* smh gawdl3y
2017-01-11 22:59:09 +00:00
Schuyler Cebulskie
b2822c584a
Minor doc updates
2017-01-10 19:43:25 -05:00
Schuyler Cebulskie
5caa7df1d8
Add centralised reply option to message options
2017-01-10 19:25:05 -05:00
Schuyler Cebulskie
8b0e5aad38
Fix sendEmbed with array content
2017-01-10 19:22:03 -05:00
Gus Caplan
c37cd3fd91
clean up webhooks and fix sending messages with webhooks ( #1078 )
...
* clean up webhooks and fix sending messages with webhooks
* whoops
* fix up options
* Update Webhook.js
* Update Webhook.js
* Update Webhook.js
2017-01-10 16:52:12 -05:00
Amish Shah
b5026909a1
Remove DMChannel.bulkDelete and GroupDMChannel.bulkDelete
2017-01-09 18:20:05 +00:00
Enchanted13
47707d245d
Changed return type of Guild.defaultChannel ( #1079 )
...
The default channel for a Guild is always the first TextChannel in the Guild, it can't be a VoiceChannel.
2017-01-09 15:35:11 +00:00
Gus Caplan
5e7ae847de
switch to proper querystring parser because why not ( #1077 )
2017-01-08 14:49:56 -05:00
ooookai
4a7284b86e
move function getRoute(url) into class APIRequest ( #1065 )
...
this.route = getRoute(this.url);
>>>
this.route = this.getRoute(this.url);
2017-01-08 19:34:06 +00:00
Amish Shah
391b618b3f
Merge branch 'indev-prism' of https://github.com/hydrabolt/discord.js into indev-prism
2017-01-08 14:12:36 +00:00
Zack Campbell
b68283e57a
Make _array & _keyArray non-enumerable ( #1075 )
...
Because Map has no enumerable properties
2017-01-08 11:59:45 +00:00
Amish Shah
fde3a976aa
Revert "This expands the consistency of .find and .exists to include the id property" ( #1074 )
2017-01-08 10:17:10 +00:00
Jacob
2a668ac997
This expands the consistency of .find and .exists to include the id property ( #1072 )
...
* provide a more consistent api for .find
* remove random warning
* make code more concise
2017-01-08 09:02:44 +00:00
Programmix
adbd95adf0
Fix VoiceBroadcaster per-dispatcher volume ( #1073 )
2017-01-08 08:39:48 +00:00
Amish Shah
3b1264ad6d
Fix Buffer deprecation stuff
2017-01-07 22:30:20 +00:00
Amish Shah
9f8289e433
don't process empty sets
2017-01-07 22:09:51 +00:00
Amish Shah
de0ba9fb7c
change error to debug
2017-01-07 21:48:30 +00:00
Amish Shah
0df17b1634
Add broadcast.destroy();
2017-01-07 21:39:12 +00:00
Amish Shah
dc640017cd
Fix some stream bugs
2017-01-07 21:10:46 +00:00
Amish Shah
fcd7cf1450
stop destructive ending of broadcasts
2017-01-07 19:44:42 +00:00
Amish Shah
bace8bcac2
make broadcast not suck as much
2017-01-07 19:38:05 +00:00
Schuyler Cebulskie
bac599b52e
Merge branch 'master' into indev-prism
2017-01-07 03:42:39 -05:00
Gus Caplan
42527ea969
fix message#isMemberMentioned ( #1061 )
...
* fix this
* e
* Update Message.js
2017-01-07 03:38:23 -05:00
Schuyler Cebulskie
e5e36d9111
Rename snowflake class to prevent naming conflicts
2017-01-07 03:37:16 -05:00
Zack Campbell
f76b47184a
Fix typo in MessageSearchOptions typedef ( #1068 )
2017-01-07 03:31:15 -05:00
Schuyler Cebulskie
add3c1a8ee
Clean up docs slightly
2017-01-07 03:29:52 -05:00
Schuyler Cebulskie
8cff77726a
Detardify snowflake docs/organisation
2017-01-07 03:22:55 -05:00
Gus Caplan
a66b2b7ec5
add more things to clientuser ( #1066 )
...
* add more things to clientuser
* add desc
2017-01-05 16:38:48 +00:00
HyperCoder
fdc8050188
Fix <Guild>.large ( #1062 )
...
* Fix <Guild>.large
Would either be true or undefined.
* Update Guild.js
* To make hydrabolt happy
* Update Guild.js
2017-01-05 15:43:57 +00:00
Gus Caplan
495264761c
Add snowflake utils ( #1064 )
...
* snowflakes
* use proper binary for snowflake example
* fix jsdoc errors
* remove dupe
2017-01-05 15:41:42 +00:00
Gus Caplan
d47f9d202b
update search to have more useful returns ( #1060 )
2017-01-03 23:49:19 +00:00
Gus Caplan
7cbe81e71a
fix editing with an array ( #1059 )
...
* fix editing with an array
* fix build
* put this back because reasons
* i'm having one of those nights
2017-01-03 06:59:34 +00:00
Schuyler Cebulskie
2c26d79f50
Replace custom ArrayBuffer converter with Buffer.from
2017-01-02 01:51:26 -05:00
Michael Huang
3b9b06227e
Fix _removeReaction's reaction lookup ( #1045 )
...
* Fix _removeReaction's `this.reactions` lookup
* Use emoji.identifier for reaction collection keys
2016-12-30 21:06:05 -05:00
Schuyler Cebulskie
054d4655c1
Rearrange identifier
2016-12-30 21:05:37 -05:00
Gus Caplan
2b25641270
add option for guilds per shard, and fix type ( #1053 )
2016-12-30 21:03:23 -05:00
Schuyler Cebulskie
814c4e8617
Merge branch 'master' into indev-prism
2016-12-30 16:49:35 -05:00
Schuyler Cebulskie
4447e367f6
Fix other BufferResolvables with base64
2016-12-30 16:22:29 -05:00
Schuyler Cebulskie
2ea744c9d1
Reestablish the natural order and heirarchy of all things
2016-12-30 16:19:15 -05:00
Schuyler Cebulskie
eaf2091c2f
Rearrange some methods and improve search description
2016-12-30 16:17:31 -05:00
Schuyler Cebulskie
43283eeaec
Clean up search examples slightly
2016-12-30 16:15:51 -05:00
Amish Shah
91e0a81d6b
Add playArbitraryInput
2016-12-30 19:20:32 +00:00
Amish Shah
eacbfbd520
Add VoiceBroadcast#playArbitraryInput and VoiceConnection#playArbitraryInput
2016-12-30 19:13:25 +00:00
Amish Shah
ac62a58f47
Merge branch 'master' into indev-prism
2016-12-30 19:00:53 +00:00
Amish Shah
023ac0a7fe
Add search() stubs for docs
2016-12-30 18:59:34 +00:00
Amish Shah
4c8e4fde6f
Fix remove reaction endpoint
2016-12-30 18:31:48 +00:00
Amish Shah
e2753136a4
Reorganise VoiceBroadcast dispatchers and also add new events
2016-12-30 18:21:22 +00:00
Amish Shah
d13c48bafa
more tiny voice docs
2016-12-30 18:10:48 +00:00
Amish Shah
56e01291e2
Merge branch 'master' into indev-prism
2016-12-30 18:05:29 +00:00
Amish Shah
69ccc75590
more voice docs
2016-12-30 17:56:58 +00:00
Amish Shah
221e7f8b21
Voice Connection docs
2016-12-30 17:44:05 +00:00
Amish Shah
50dc9addf1
Fix ESlint error, remove 'long' module import
2016-12-30 17:28:23 +00:00
Amish Shah
f31a3725fe
StreamDispatcher documentation
2016-12-30 17:25:28 +00:00
Gus Caplan
bde6749d65
clean up search ( #1049 )
...
* add more search stuff
* clean up the options
* fix link hostname
* use some resolvers
* fix type
* move the trasform to a seperate file
* pass this param
* move typedef
2016-12-30 17:21:03 +00:00
Gus Caplan
da32c2ec3d
add more search stuff ( #1046 )
...
* add more search stuff
* clean up the options
* fix link hostname
* use some resolvers
* fix type
2016-12-30 17:14:31 +00:00
Gus Caplan
258e4b9085
fix setting avatar to buffer ( #1048 )
2016-12-30 17:00:16 +00:00
Amish Shah
3109accf87
improve broadcasting performance
2016-12-30 15:25:28 +00:00
Amish Shah
fb1d0a3e74
fix eslint
2016-12-30 15:00:56 +00:00
Amish Shah
0a6d71d7e5
try this fix idk
2016-12-30 14:45:43 +00:00
Amish Shah
90ca422485
undo that
2016-12-30 14:30:57 +00:00
Amish Shah
22a6ded341
Defer some creations
2016-12-30 14:27:59 +00:00
Amish Shah
91fc6ccb5c
VoiceBroadcasting much more efficient
2016-12-30 13:57:09 +00:00
Amish Shah
bf4010e89c
Simplify broadcast creation
2016-12-30 12:46:34 +00:00
Amish Shah
2f630a0dbb
AudioPlayer now destroys all dispatchers on closing, Broadcasts are also destroyed properly
2016-12-30 12:43:56 +00:00
Gus Caplan
beffb390e6
Add search ( #1043 )
...
* add search
* Update ClientDataResolver.js
2016-12-30 02:44:19 -05:00
Schuyler Cebulskie
f0adf8f122
Fix User#defaultAvatarURL in Node 6
2016-12-30 01:46:56 -05:00
Schuyler Cebulskie
b5f51d612a
Merge branch 'master' into indev-prism
2016-12-29 23:15:41 -05:00
bdistin
9e70d6279f
Fix erroneous docs examples ( #1042 )
2016-12-29 22:01:18 -05:00
Schuyler Cebulskie
77548c194f
Add missing type
2016-12-29 20:01:30 -05:00
Amish Shah
c6f17054fc
Remove unused fs import
2016-12-29 22:59:43 +00:00
Amish Shah
12605575fb
Add VoiceBroadcast.pause and VoiceBroadcast.resume
2016-12-29 21:59:36 +00:00
Amish Shah
ad18b05d66
Reset what is playing
2016-12-29 21:51:23 +00:00
Amish Shah
72a99f9582
start work with broadcast streams
2016-12-29 21:22:13 +00:00
Amish Shah
e9af3f0a1f
Merge branch 'indev' into indev-prism
2016-12-29 19:02:54 +00:00
Gus Caplan
22b1c425ac
add ClientUser.settings ( #1041 )
...
* add user settings
* Update Ready.js
2016-12-29 18:58:39 +00:00
Amish Shah
f8440ad565
Merge branch 'indev' into indev-prism
2016-12-29 17:26:22 +00:00
Schuyler Cebulskie
6e51a44f92
Small doc updates
2016-12-29 11:19:30 -05:00
Amish Shah
4541b3e264
Simplify check in StreamDispatcher and add test voice bot
2016-12-29 16:10:51 +00:00
Zack Campbell
665ef21c85
Update DMChannel, GroupDMChannel for docs ( #1038 )
2016-12-29 11:04:41 -05:00
Schuyler Cebulskie
3e3de51545
Update message sending docs
2016-12-29 11:01:27 -05:00
Schuyler Cebulskie
ba77e69edf
Document boolean for code option
2016-12-29 10:51:05 -05:00
Schuyler Cebulskie
86ffc86324
Update updateMessage with the new code logic
2016-12-29 10:49:59 -05:00
Schuyler Cebulskie
650acbf662
Improve codeblock lang
2016-12-29 10:44:24 -05:00
Amish Shah
1452fa5014
Merge branch 'indev' into indev-prism
2016-12-29 14:19:39 +00:00
Amish Shah
75d45bd587
Fix sending codeblocks without a lang
2016-12-29 14:18:39 +00:00
Amish Shah
627a8870f5
change error emission logic
2016-12-29 14:14:27 +00:00
Amish Shah
e1d01ed6a2
Merge branch 'indev' into indev-prism
2016-12-29 14:04:05 +00:00
Amish Shah
6d7293e3c5
Fix sending an array of messages
2016-12-29 14:00:54 +00:00
Schuyler Cebulskie
95790dcf08
Update User#equals doc
2016-12-29 03:21:22 -05:00
Schuyler Cebulskie
1b76333b8b
Add missing @typedef line
2016-12-29 03:04:11 -05:00
Schuyler Cebulskie
fe7ed523b3
Improve ClientUser presence method docs
2016-12-29 03:01:34 -05:00
Gus Caplan
ed8fcf651a
Centralise message sending logic in one method, remove sendTTSMessage, add client shortcut in RESTMethods ( #1031 )
...
* start wip rewrite of sending/editing messages
* pass the build, modify the edit method to fit the new system
* simplify the applyToClass method
* change handling of file options
* add back message splitting
* i couldn't help myself
* add some smart message options
* clean up, add sexy options
* fix indentation
* fix up splitting
* add \b
* add back old methods for hydar happiness
* clean up more
* move code handling to the rest method
* clean up this.rest.client
* Update TextBasedChannel.js
* add docs back for the bad methods
* fix reply in group dms
* srsly gawdl3y
* make code better
* fix changes for gawdl3y
* fix checking
* remove getter
* make code handling more robust
* k
* fix up sendEmbed docs
* stupid
* fix up more docs because aaaaa
* no more pls
2016-12-28 23:58:30 -05:00
Amish Shah
7ede44bc00
Add CloseEvent external
2016-12-29 00:27:40 +00:00
Amish Shah
18e04d69f1
Delete stream setups after they have ended or errored
2016-12-29 00:16:13 +00:00
Amish Shah
e64d9c6057
fix odd bug
2016-12-28 23:58:01 +00:00
bdistin
ea798eaaf3
Update Missing Permission Resolvables ( #1035 )
2016-12-28 18:27:02 -05:00
Amish Shah
e7824d6515
Fix weird audio playback bug between subsequent streams on an AudioPlayer
2016-12-28 23:21:34 +00:00
Zack Campbell
e4bae99747
Update GuildResolvable typedef ( #1034 )
...
To reflect the resolver supporting Guild ID strings
2016-12-28 16:50:32 -05:00
Amish Shah
00254f35b0
Make voice return streamdispatcher
2016-12-28 21:40:11 +00:00
Schuyler Cebulskie
bbeef44e66
Update ClientDataResolver.js
2016-12-28 16:32:14 -05:00
Schuyler Cebulskie
8e47058286
Update ClientDataResolver.js
2016-12-28 16:30:15 -05:00
Schuyler Cebulskie
289447e4c9
Update Client.js
2016-12-28 16:28:36 -05:00
Amish Shah
4294d267e7
Add playFile back to voice connection
2016-12-28 19:23:11 +00:00
Gus Caplan
3451367591
fix the everyone role mentioning ( #1032 )
2016-12-28 19:04:54 +00:00
Amish Shah
0a47d0e1d6
Remove old stuff
2016-12-28 18:16:26 +00:00
Amish Shah
8e75b47a7b
add back seek option
2016-12-28 17:37:56 +00:00
Amish Shah
8cf520d5af
update streamDispatcher
2016-12-28 17:28:14 +00:00
Amish Shah
be32bbc3a4
really really really messy implementation of prism
2016-12-28 17:04:18 +00:00
Gus Caplan
8d966932a9
funny ( #1030 )
2016-12-28 01:42:42 -05:00
bdistin
4d2153c7c6
Document ShardingManager#message ( #1024 )
...
* Document ShardingManager#message
* Update Shard.js
2016-12-27 22:44:17 -05:00
Zack Campbell
265021bfa5
Add sendEmbed to GuildMember for docs ( #1028 )
...
* Add sendEmbed to GuildMember for docs
* Update GuildMember.js
2016-12-27 22:35:11 -05:00
Schuyler Cebulskie
84991c767e
Improve some Gus shenanigans
2016-12-27 22:30:51 -05:00
meew0
14ba0373eb
Fix a small spelling mistake in a debug log
2016-12-27 23:16:30 +01:00
Gus Caplan
779681e88f
"knock knock. who's there? ack lol. GET OFF MY PORCH!" ( #1023 )
2016-12-27 17:31:23 +00:00
Gus Caplan
bac4ccead7
"knock, knock. who's there. discord, lol" ( #1021 )
2016-12-27 12:13:57 +00:00
Gus Caplan
b79533e373
correctly handle invalid session ( #1020 )
...
* correctly handle invalid session
* give discord some time, use it wisely
2016-12-27 00:04:09 +00:00
Amish Shah
b0c2f818a8
Remove cached events
2016-12-26 21:56:04 +00:00
Amish Shah
f510dc5a10
Merge branch 'indev' of https://github.com/hydrabolt/discord.js into indev
2016-12-26 21:30:30 +00:00
Amish Shah
bf7767fe2c
Rename emoji events
2016-12-26 21:30:27 +00:00
Schuyler Cebulskie
758c801dd5
Change to function declaration
2016-12-26 15:40:34 -05:00
Alexander
b1473b1e4c
Change RichEmbed to take StringResolvables ( #1010 )
...
Changed RichEmbed to take StringResolvables for all title, name, value and
description arguments.
Also changed a few lines in setColor to make sure that the value
assigned to this.color is always a number.
2016-12-26 15:39:07 -05:00
Amish Shah
72c667b307
Fix potential ReferenceError with GuildMembersChunk
2016-12-26 20:20:58 +00:00
Amish Shah
cd657be8be
Add functionality for GuildEmoji events
2016-12-26 19:21:00 +00:00
Gus Caplan
2410fdf8d2
fix heartbeats once and for all ( #1016 )
2016-12-25 16:28:36 +00:00
Schuyler Cebulskie
74c3bae506
Teensy weensy cleanup
2016-12-24 19:54:37 -05:00
Schuyler Cebulskie
ab30715028
Fix Hydar's lint errors
2016-12-24 19:49:24 -05:00
Amish Shah
544e456302
Add ClientOptions.restTimeOffset for better performance for bots with a good network connection
2016-12-24 12:13:42 +00:00
Gus Caplan
3eca3ba95e
add handler in case heartbeat is not acked ( #1013 )
...
* add handler in case heartbeat is not acked
* ffs
2016-12-24 11:04:27 +00:00
Gus Caplan
7c12fdcb56
add payload_json instead of the current iterator ( #1015 )
2016-12-24 02:04:18 -05:00
Schuyler Cebulskie
28ca83011c
Implement missing Collection#reduce functionality
2016-12-24 01:59:14 -05:00
Gus Caplan
265ac90234
Update Constants.js ( #1014 )
2016-12-23 18:41:04 +00:00
Amish Shah
2ab5bae69a
change let to const
2016-12-23 18:38:48 +00:00
Amish Shah
e63432c18e
Fix editing role positions ( fixes #864 )
2016-12-23 16:45:47 +00:00
Gus Caplan
e6a041241b
cleanup ws ratelimiting, and apirequest ( #957 )
...
* cleanup ws ratelimiting, and apirequest
* cleanup timestamps
* clean up timestamps
2016-12-23 14:37:43 +00:00
Amish Shah
74ef0b2e14
minor fixes
2016-12-23 14:37:35 +00:00
Amish Shah
b518437f52
Emit the close event on disconnect
2016-12-23 13:59:06 +00:00
Gus Caplan
2390e525ef
Fix User#avatarURL for Nitro animated avatars ( #1012 )
...
* fix avatar url
* switch to cdn
2016-12-23 00:57:49 -05:00
bdistin
f726db2152
Revert error emit on Slow Stream Gen ( #1011 )
2016-12-22 22:24:31 -05:00
Gus Caplan
cecb0aee02
Update User#setEmail/setPassword/setUsername ( #991 )
...
* fix some things with user updates and tokens and such
* fix stupid
* Update ClientUser.js
* Update ClientUser.js
2016-12-22 15:12:29 -05:00
Hackzzila
84954c8860
Add notice about disabling events ( #1008 )
...
* Add notice about disabling events
* fix english
* Update Constants.js
* Update Constants.js
* Update Constants.js
* Update Constants.js
2016-12-22 15:01:04 -05:00
Gus Caplan
fa7d63a10a
add an invite generator ( #993 )
...
* add an invite generator
* `number |= null` is safe, so we can simplify this
* Update Client.js
* aaaaaa
2016-12-20 23:37:36 +00:00
Gus Caplan
c483dd8239
add some useful events ( #1004 )
2016-12-20 23:37:06 +00:00
Gus Caplan
84503c8877
add User#dmChannel ( #1005 )
...
* add User#DMChannel
* Update User.js
* Update User.js
2016-12-20 23:36:43 +00:00
Gus Caplan
e392107369
add ClientUser#fetchMentions ( #999 )
...
* add ClientUser#fetchMentions
Signed-off-by: Gus Caplan <gus@localhost.localdomain>
* ugh
* Update ClientUser.js
* Update ClientUser.js
* Update ClientUser.js
2016-12-19 02:16:27 -05:00
Gus Caplan
a0a3989e59
fix issue with uncached channels and adding members ( #1001 )
...
* fix this thing
* fix a silly
* Update Guild.js
2016-12-19 02:11:55 -05:00
Gus Caplan
b74c1b70b6
fix 992 ( #994 )
2016-12-18 16:06:42 -05:00
Will Nelson
736fa7c611
friendlier notification of an invalid token ( #997 )
...
* friendlier notification of an invalid token
* fixed
* even fixeder
* no token -> invalid token
* eslint
* Update RESTMethods.js
2016-12-17 13:22:39 -05:00
Schuyler Cebulskie
361547a588
Fix a bunch of capitalisation issues
2016-12-15 20:10:38 -05:00
bdistin
fbe1929bde
Pass Reason to the streamDispatcher end event ( #985 )
...
* Pass Reason to the streamDispatcher end event
* Update <dispatcher>.end() to bring inline with <collector>.stop()
Also changed "Stream is not generating quickly enough." from an end to an error, per Crawl...
* Fix docs Copy/Paste fail from collection end event
2016-12-15 16:32:37 +00:00
Gus Caplan
a20bac7258
update per issue 69 on the h&c github ( #963 )
...
* update per issue 69 on the h&c github
* clean up things that don't exist anymore
2016-12-15 16:32:19 +00:00
Gus Caplan
9c59b649ad
get rid of user agent errors ( #990 )
2016-12-15 16:32:06 +00:00
Gus Caplan
2e7472bb1a
just webpack things ( #988 )
2016-12-14 19:40:47 -05:00
Alexander
264ee8e7f1
Equals updates ( #987 )
...
* Docs update
Changed the param names and param descriptions to be consistent.
* Added === comparison
Changed Presence.equals and Game.equals to first compare using ===
* Collection.equals fix
Now returns false when collection is undefined, instead of crashing
💯
2016-12-14 17:10:34 -05:00
Alexander
906bb3c5f3
Utilise Collection#equals for structures' equals ( #986 )
...
Utilizing Collection.equals in GuildChannel.equals
Utilizing Collection.equals in GroupDMChannel.equals
2016-12-14 15:35:40 -05:00
Schuyler Cebulskie
bef0523ebf
Capitalise ID in Guild#applicationId
2016-12-14 13:04:40 -05:00
Schuyler Cebulskie
4e76251aa2
Fix some Gus stuff
2016-12-14 12:37:23 -05:00
Gus Caplan
8139bef4e2
add some missing properties ( #978 )
...
* add premium to profile
* add other missing stuff
2016-12-14 17:23:22 +00:00
Perry Berman
78026df1df
fix defaultAvatarURL ( #983 )
...
looks like someone forgot how to caps
2016-12-13 20:43:28 -05:00
Cole
586d652c16
Quality of life changes ( #968 )
...
* + Added function to get a user's default avatar
+ Added HOST constant to Constants
+ Added assets endpoint
+ Added quality of life function to get a user's avatar or default avatar
+ Added quality of life function to get member's nickname or username
* * Fixed invocation of a getter.
* Fixed lint issue
* Made the API constant use the HOST constant for DRY-ness
Changed DOC comment to be more descriptive
* Update GuildMember.js
2016-12-12 22:34:19 -05:00
bdistin
3193df792e
Added Missing Author URL Option ( #979 )
2016-12-12 22:29:39 -05:00
Hackzzila
52a83b9218
Add ffmpeg-binaries as a possible source of ffmpeg ( #975 )
...
* Add ffmpeg-binaries as a possible source of ffmpeg
* Add note in faq
2016-12-11 19:02:00 +00:00
Gus Caplan
d766e727a1
add GuildChannel#clone ( #973 )
...
* add GuildChannel#clone
* e
2016-12-11 09:07:52 +00:00
bdistin
710d3db94f
RichEmbed Tweaks/Improvements ( #964 )
...
* RichEmbed Tweaks/Improvements
Changed .addTimestamp() to .setTimestamp() to bring it inline with all other single value settings.
Changed Field value to StringResolveable from String to bring it inline with typical sendMessage functionality.
* Lint Fix
* Remove Default, Add check for undefined
2016-12-09 22:10:50 -05:00
Slamakans
b79a91b3a9
new errors for richembed yay ( #966 )
...
* Update faq.md (#949 )
* fix docs
* Revert "fixed typo in documentation" (#950 )
* new errors for richembed yay
Simplified the parsing for color arrays.
Throwing some errors on values that would result in Bad Requests.
Changed setAuthor and setFooter's icon parameter to icon_url to match
the embed object's property name.
Changed the docs for setFooter to reflect that icon_url is optional.
* changed docs instead of arg names
* capitalization
2016-12-09 22:09:55 -05:00
Gus Caplan
c5f93eb44e
Add more MessageEmbed stuff ( #970 )
...
* this is why wrapping data 1:1 is a bad idea
* ffs
* whoever wrote role.hexColor is a bad, bad person
* Update MessageEmbed.js
* Update MessageEmbed.js
2016-12-09 22:07:34 -05:00
Gus Caplan
e51fed968d
hydarplz ( #962 )
2016-12-09 20:47:56 +00:00
Will Nelson
275d9d3ce0
fix remove reactions return ( #961 )
2016-12-07 10:12:00 -05:00
Schuyler Cebulskie
a0de75f290
Improve ShardClientUtil warnings/errors
2016-12-07 00:30:36 -05:00
Gus Caplan
b177aefdd6
add user/member lastMessageID ( #959 )
...
* add user.lastMessageID
* stupid
* add member.lastMessageID
2016-12-06 23:46:32 -05:00
Gus Caplan
050d3f9303
fix serialize for webpack ( #960 )
...
* fix serialize for webpack
* Update WebSocketManager.js
* Update WebSocketManager.js
2016-12-06 23:45:31 -05:00
Évelyne Lachance
f9bf0ed5e6
Quick fix for error in guildMemberRole
...
Because Gus is a massive derp.
2016-12-06 18:35:33 -05:00
Gus Caplan
d67ecdd2af
fix authenticating role updates ( #956 )
...
* Update RESTMethods.js
* Update RESTMethods.js
2016-12-06 17:23:40 +00:00
Zack Campbell
37bfdd154c
Fix embed footer text length error ( #955 )
2016-12-05 20:50:25 -05:00
Zack Campbell
daa79b7f97
Add more errors for RichEmbed builder char limits ( #954 )
...
* Add more errors for RichEmbed builder char limits
Might as well if we're erroring on number of fields when that's the one limit that doesn't actually throw a bad request.
* Fix name.length check in previous commit
* Update RichEmbed.js
* Update number of fields error message
2016-12-05 20:33:58 -05:00
bdistin
8eff36b744
Fix reconnect when using WS ( #952 )
...
* Fix reconnect when using WS
* Add disconnect status (fix reconnect with WS)
2016-12-05 21:06:49 +00:00
Schuyler Cebulskie
977e29ceba
👏 @Programmix
2016-12-04 20:25:24 -05:00
Amish Shah
8f8e0b1e52
fix that
2016-12-04 13:08:50 +00:00
Amish Shah
d6218050ba
export constants
2016-12-04 13:08:22 +00:00
Schuyler Cebulskie
bd00bc404c
Make Collection#set/delete return the result of the super call, and clean up equals docs
2016-12-03 21:38:27 -05:00
Slamakans
a0b245bfe1
equals function added ( #948 )
...
Adds an equals function that checks for differing size and differing
key-value pairs, and takes into account the edge case for when there's
an entry for the key, but the value is undefined.
2016-12-03 21:34:26 -05:00
Gus Caplan
638e51a18c
support new guild member role endpoints for cleaner role updates ( #901 )
...
* support new roles endpoints
* use promise chaining
* properties man
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
2016-12-02 23:46:55 -05:00
Programmix
8b7ef0c850
Add Message.fetchWebhook ( #947 )
...
* Add Message.fetchWebhook
* Update Message.js
2016-12-02 22:59:44 -05:00
Schuyler Cebulskie
c0aa6bd30f
Work around Node's module loading
2016-12-02 22:55:37 -05:00
Schuyler Cebulskie
6adc8a9d0d
Move a getter around
2016-12-02 22:47:12 -05:00
Programmix
676a895da7
Add Message - webhookID, isMemberMentioned ( #946 )
...
* Add Message - webhookID, isMemberMentioned
* Update Message.js
* Update Message.js
* Update Message.js
* Update Message.js
2016-12-02 22:35:01 -05:00
Gus Caplan
6cfbf76406
add more embed stuff ( #939 )
...
* add fun embed stuff
* add more docstrings
* fix gawdl3y
* Update RichEmbed.js
2016-12-02 21:59:38 -05:00
Gus Caplan
1e5afc1608
Add etf encoding support with erlpack ( #943 )
...
* the performance from this is astounding
* help uws
* save 15 bytes in webpacks
* update readme
* why is markdown like this
* optimizations
* Update WebSocketManager.js
2016-12-02 21:35:59 -05:00