Anxeal
ac5d4d1050
Fix typo in RESTMethods.js ( #1455 )
...
Mentions should be written with a capital M
2017-05-03 20:35:24 +01:00
Anxeal
3d92c6d316
Fix typo in RESTMethods.js ( #1454 )
...
fetchMeMentions -> fetchMentions 🤔
2017-05-03 19:45:51 +01:00
SpaceEEC
07623d49e2
Fix for sending files with Webhook class ( #1449 )
2017-05-02 06:58:42 +01:00
Amish Shah
a7c902c6cf
New is also optional
2017-05-01 22:11:04 +01:00
Amish Shah
b7a81ed7e1
watch me, gus
2017-05-01 22:07:20 +01:00
Amish Shah
7da53af0c3
Improve GuildAuditLogs documentation by creating an AuditLogChange typedef
2017-05-01 21:08:15 +01:00
Cody A. Taylor
e124ada962
Document flattenErrors keys param ( #1447 )
...
* Document flattenErrors keys param.
* Remove parens.
* Capitalise a letter
2017-05-01 20:49:45 +01:00
Gus Caplan
35ef9cd33d
Add Guild#nameAcronym and make avatar/iconURLs into functions ( #1144 )
...
* Guild#iconURL(format, size);
* OAuth2Application#iconURL(format, size);
* User#iconURL(format, size);
2017-05-01 20:37:00 +01:00
Gus Caplan
3bab4ec9fd
Add time methods to Audit Log entries ( #1443 )
...
* aaaaa
* Update GuildAuditLogs.js
2017-05-01 18:05:15 +01:00
aemino
2bf8a36077
Allow await endpoint stage to not error ( #1444 )
2017-05-01 18:01:28 +01:00
Amish Shah
c48f042785
silly hydar
2017-05-01 15:42:47 +01:00
Amish Shah
b8018d4b6d
Reconnect on 1000 if client didn't close
2017-05-01 15:32:40 +01:00
Amish Shah
6e4b744d03
Export ClientOAuth2Application
2017-05-01 15:27:44 +01:00
Amish Shah
135d9e3ea0
Expose GuildAuditLogs
2017-05-01 15:25:21 +01:00
Amish Shah
51a2e465bd
Let client know who closed the WebSocket
2017-05-01 15:24:02 +01:00
Amish Shah
2ace21c412
backwards compat docs
2017-05-01 15:10:11 +01:00
Amish Shah
140839128a
Fix ban delete days
2017-05-01 15:07:02 +01:00
Amish Shah
0f4983852e
Fix ban message delete days
2017-05-01 14:57:27 +01:00
Amish Shah
db45d99d0c
More deprecated stuff
2017-05-01 11:28:48 +01:00
Amish Shah
8bab9fb122
Add VIEW_AUDIT_LOG to Permissions docs
2017-05-01 11:15:09 +01:00
Isabella
a02e10926d
Stop using deprecated methods within discord.js ( #1441 )
...
* fix deprecation stuff
* fixed a check
2017-05-01 10:14:26 +01:00
Drahcirius
166161d6d3
ready event will now throw errors properly ( #1440 )
2017-05-01 08:43:35 +01:00
Amish Shah
892ba67d71
Emit packet handling errors to the error event and not the debug event
2017-05-01 07:56:13 +01:00
Crawl
c3be798663
Update GuildAuditLogs.js
2017-05-01 01:03:12 +02:00
Gus Caplan
7779069e32
add audit logs "extras" ( #1435 )
...
* add audit logs "extras"
* whoops
* Update GuildAuditLogs.js
2017-04-30 23:57:42 +01:00
Gus Caplan
1ddae43fed
Add class doc blocks to Audit Logs ( #1438 )
2017-04-30 23:57:06 +01:00
SpaceEEC
c5efa985fc
Readding Client#disconnect and docs for Client#reconnecting ( #1437 )
...
* readded docs for client#reconnecting and client#disconnect
* moved disconnect event emitting and clarified emitting reason
2017-05-01 00:16:02 +02:00
Amish Shah
0754ddbc34
Reset sequence when sessions are invalidated
2017-04-30 22:26:44 +01:00
Gus Caplan
37b1f38ebe
Make audit log entries a collection ( #1436 )
2017-04-30 21:25:22 +01:00
Amish Shah
c2566d230c
Wait undo that
2017-04-30 21:04:39 +01:00
Amish Shah
474a954938
Force deaf/mute properties to be booleans even when null data is received
2017-04-30 21:04:11 +01:00
Amish Shah
e460e5e853
Fix some stuff
2017-04-30 21:01:04 +01:00
Crawl
457b9600f2
Docs consistency plz
2017-04-30 13:16:19 +02:00
Crawl
3cb4aac65a
Remove unused util
2017-04-30 13:03:51 +02:00
Amish Shah
edf1a3e7b4
Undeprecate uws and fix support for it
2017-04-30 11:56:24 +01:00
Amish Shah
f20f49388d
Simplify data unpack logic
2017-04-30 11:40:16 +01:00
Amish Shah
007b1226c9
Rudimentary support for uws while it is deprecated
2017-04-30 11:36:20 +01:00
Amish Shah
8e5c600227
Make OAuth2Application backwards compatible again
2017-04-30 11:21:48 +01:00
Amish Shah
dd110f4824
Add example for creating VoiceBroadcasts
2017-04-30 11:04:41 +01:00
Amish Shah
81b176cfea
BaseOpusEngine should be private
2017-04-30 11:01:26 +01:00
aemino
5cad25ea69
Add Guild#me ( #1384 )
...
* Add Guild#me
(also did minor docs cleanup)
* Don't use Guild#member as there's nothing to resolve
* Update ClientDataResolver.js
* Update Guild.js
* Update Guild.js
* Update Guild.js
2017-04-30 04:30:59 -04:00
Pg Biel
9a5de25d79
Emoji convenience methods ( #1378 )
...
* make branch
* stuff
* Consistency & remove role(s)
* kill me
* Doc changes
Requested by Crawl
* forgot 1
2017-04-30 04:51:15 +02:00
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02:00
Schuyler Cebulskie
3f8c0a4d11
Move things
2017-04-29 20:56:40 -04:00
Schuyler Cebulskie
e2c8ba5be0
Allow MessageMentions#channels to function in DMs
2017-04-29 20:18:23 -04:00
Schuyler Cebulskie
aa35e21b84
Revert "Make MessageMentions#channels return an empty collection in DMs ( #1430 )"
...
This reverts commit 88aa947376 .
2017-04-29 20:00:36 -04:00
Gus Caplan
6f96cf7325
Use Target variables for consistency ( #1431 )
2017-04-30 00:36:26 +01:00
Amish Shah
ee37d859a4
dumb ass bug fix
2017-04-29 22:47:06 +01:00
Amish Shah
1a69331f0c
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2017-04-29 21:09:56 +01:00
Amish Shah
c40252381b
Deprecate all the things
2017-04-29 21:09:53 +01:00
Gus Caplan
4127cf6e40
Experimental support for Audit Logs ( #1403 )
...
* start audit logs
* make better var types so gawdl3y doesn't shit on this
* add constructor stuff
* make more changes
* add entry creation
* add methods
* make it all work hopefully
* aaa
* aaaa
* i wish i could test this locally
* fix users, guild when i feel like it
* make guild prop non-enumerable
* make better types
* change nouns
* e
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* eek
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* friggin trailing spaces
* Update GuildAuditLogs.js
* docs!
* Update GuildAuditLogs.js
* reason stuff
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* support before/after for pagination
* Update Guild.js
* Update GuildAuditLogs.js
* mfw using github web editor
* fix build
* Update Guild.js
* amazing cache fuckery shit evil
* cool stuff
* make building audit logs nicer
* ban endpoint stuff
* dox
* <.<
2017-04-29 20:34:57 +01:00
Amish Shah
b0a3528411
sorry gus i borked
2017-04-29 20:00:05 +01:00
Amish Shah
5b2ca326d4
ESLint pls >.>
2017-04-29 18:07:48 +01:00
Amish Shah
f7d65991d5
Minor refactor of Actions
2017-04-29 17:56:36 +01:00
Amish Shah
dd8f77fcf0
Stop the EventEmitter debug warnings when fetching lots of guilds before ready
2017-04-29 17:46:36 +01:00
Amish Shah
584961b04b
Debug resume from connection not Client
2017-04-29 15:58:12 +01:00
Amish Shah
2e33bf583e
Try to fix StreamDispatchers ( #1387 )
2017-04-29 15:12:34 +01:00
SpaceEEC
88aa947376
Make MessageMentions#channels return an empty collection in DMs ( #1430 )
...
* Make MessageMentions#channels return an empty collection in DMs
* reduce code duplication and corrected docstring
2017-04-29 14:33:18 +01:00
stupid cat
d6b7d31047
Better ClientUser#setStatus for self bots ( #1428 )
...
* better setstatus for selfbots
* make both calls
* must return
* use setpresence, set invisible
2017-04-29 14:31:32 +01:00
Will Nelson
13672cc637
Export ReactionCollector and Collector ( #1426 )
2017-04-29 14:27:39 +01:00
SpaceEEC
956372731f
Using ws.connection.status rather than undefined ws.status ( #1429 )
2017-04-28 21:27:30 +02:00
Drahcirius
9ee695a291
incorrect variable name convention ( #1427 )
...
I'm not pr farming, I swear.
Gus told me to fix it.
2017-04-28 19:46:24 +02:00
Will Nelson
35c4c552f4
[wip] Fix collector documentation (again) ( #1416 )
...
* remove private on abstract methods, fix timeout type
* make client readonly, add documentation to abstract methods
* document implemented collector methods
2017-04-28 19:45:46 +02:00
Drahcirius
89745fe132
emojis should use cdn endpoint ( #1425 )
2017-04-28 18:47:18 +02:00
Drahcirius
2accb7b6fd
small typo fix in emoji id endpoint ( #1424 )
2017-04-28 18:11:12 +02:00
Amish Shah
195fcfa15c
Rewrite WebSocket internals ( #1410 )
...
* Start rewriting Manager and Connection
* more stuff
* stuff
* Fix ready bug
* some stuff i forgot
* fix some stuff
* add stupid heartbeat ack like seriously who cares
* woo!
* fix a bug
* rate limit the dumb websocket
* stuff
* hdocs
* Docs
* Remove ClientManager#setupKeepAlive as it is now redundant
* Change Client._pingTimestamp to a getter that fetches the timestamp from the WebSocketConnection
* are you happy now eslint smh
* make gus happy
* Add CloseEvent external doc
* Make sure to emit 'reconnecting' when actually reconnecting
* ffs
* Fix RESUME logic
* Add heartbeat ack debug messages, including latency data
* Dumb stuff for Gus
* thx eslint
* more dumb stuff
* more dumb crap smh gus i h8 u
* moar messages
* fix for using wrong status, causing certain events not to be fired (#1422 )
2017-04-28 16:13:06 +01:00
SpaceEEC
95bcac9d9b
Throwing 'Message not found' error when fetching from empty channel or without read history permission. ( #1394 )
2017-04-28 17:02:52 +02:00
Gus Caplan
1601ad14e3
i hate my life ( #1420 )
2017-04-27 00:21:03 +02:00
Gus Caplan
5ac22691d2
Add TextBasedChannel#nsfw (excluding User and GuildMember) ( #1419 )
2017-04-26 23:01:27 +01:00
bdistin
298ee4e79f
Throw an error if you try to initiate a new SnowflakeUtil class instance ( #1413 )
2017-04-25 23:29:30 +02:00
SpaceEEC
909b825c94
Fixed acknowledging of channels ( #1411 )
...
* Fixed acknowledging of channels
* using channel#lastMessageID and resolve when it's not present
2017-04-25 23:29:08 +02:00
Gus Caplan
c670209021
allow search('string here') ( #1408 )
2017-04-24 16:43:30 +02:00
Crawl
53eda09f72
Improve docs
2017-04-24 16:29:29 +02:00
SpaceEEC
401822a094
Made search argument optional, added useronly warning and fixed endpoint ( #1407 )
2017-04-24 14:31:39 +02:00
Gus Caplan
59e733cef6
deprecate aliases ( #1397 )
...
* hype
* add doc dep tags
* fix that
* hopefully fix docs
* Update TextBasedChannel.js
2017-04-24 08:05:24 +02:00
Crawl
96041dbd3a
Fix doc string
2017-04-23 08:51:07 +02:00
Crawl
6abe014ac3
Change theme prop type
2017-04-23 07:04:44 +02:00
Crawl
c095610bb4
Change docstring
2017-04-23 06:50:43 +02:00
Amish Shah
26069a44e2
nope i was right the first time
2017-04-22 21:23:20 +01:00
Amish Shah
3465a154d5
that should be 60 tbh
2017-04-22 21:20:50 +01:00
Amish Shah
eec79b5fd0
Increase WebSocket backoff time to alleviate reconnect issues
2017-04-22 21:16:58 +01:00
SpaceEEC
5b3e971c5c
Message.editedTimestamp should be a number ( #1402 )
2017-04-22 16:54:48 +02:00
Will Nelson
794c0e131d
how2docs ( #1400 )
2017-04-22 01:56:23 +02:00
Amish Shah
5605dc04e1
Fix #1399 (Trying to unset games with values other than null doesn't end up displaying properly for mobile clients)
2017-04-21 11:42:19 +01:00
Will Nelson
94e2a85386
Docs fixes ( #1398 )
...
* fix collector docs
* fix message collector param type
2017-04-21 09:44:59 +02:00
Isabella
a652901d60
Throw Error for non role-resolvables ( #1322 )
...
* throw error for role names/integers being provided for role resolvables
* Update RESTMethods.js
* Update RESTMethods.js
im really bad
* Update RESTMethods.js
* removed new promise reject
ty gus
* Update RESTMethods.js
* move error to guildmember.addRole method
* Update GuildMember.js
2017-04-19 18:57:54 +02:00
Will Nelson
ca34c43ba0
Add message reaction collectors & abstract collectors ( #1335 )
...
* message reaction collectors
* docs cleanup
* abstraction
* remove pointless method
* rename reaction collector creator method
* docs and stuff
* fix docs & build
* backwards compatibility, fix docs
* fix docs
* remove deprecated comments
* betterer docs again
* Fix documentation
* Fix Alias to not break depreciated code
2017-04-19 18:52:40 +02:00
Skiptir Engu
8475a4abee
Use libsodium.js if available ( #1390 )
...
* Use libsodium.js if available
* Style consistency
* Added peer dep and update README
* Link should point to npmjs 🤔
2017-04-19 18:35:45 +02:00
Crawl
27114eebf9
Commit those in LF too
2017-04-19 18:17:23 +02:00
Crawl
1897b4f4d6
Commit those in LF
2017-04-19 18:14:37 +02:00
Schuyler Cebulskie
b7e16ad4b8
Revert "use LF instead of CRLF ( #1392 )"
...
This reverts commit 5e522e0a2e .
2017-04-18 22:41:08 -04:00
Gus Caplan
5e522e0a2e
use LF instead of CRLF ( #1392 )
2017-04-18 21:43:05 +01:00
Gus Caplan
0d83f80fc0
Fix endless reconnection bug ( #1389 )
2017-04-17 12:32:26 +01:00
Mr. Sakamoto
4aa82b4fdf
fix Guild setOwner example ( #1383 )
...
* fix Guild setOwner docs
* hello s and bye s
2017-04-15 22:13:20 +02:00
Crawl
930519c494
Update AudioPlayer.js
2017-04-13 03:17:00 +02:00
Amish Shah
8ddaa1b92c
Merge branch 'master' of https://github.com/hydrabolt/discord.js
2017-04-12 21:22:14 +01:00
Amish Shah
78895ace17
Fix reactions not being uncached once they hit a count of 0
2017-04-12 21:22:08 +01:00
SpaceEEC
d54ef0eea4
fix ( #1375 )
2017-04-12 22:06:05 +02:00
Amish Shah
dce8e83465
Add VoiceConnection#dispatcher
2017-04-12 20:36:03 +01:00
Amish Shah
36c03909dd
Clean up AudioPlayer internals, change currentDispatcher and currentTranscoder to just dispatcher and transcoder
2017-04-12 20:32:50 +01:00
Amish Shah
9eaf1456b2
Clean up AudioPlayer internals, remove the concept of multiple "temporary" streams
2017-04-12 20:12:51 +01:00
SpaceEEC
d0c2b84659
Fixed Util.arraysEqual, made it better and updated its docs ( #1374 )
...
* commit
* improved docs
2017-04-12 19:37:31 +02:00
SpaceEEC
81d7dbdc76
Fix resolveEmojiIdentifier ( #1373 )
2017-04-12 17:15:23 +01:00
Lana Reeve
40c610987e
Improved EmojiIdentifierResolvable support ( #1361 )
...
* EmojiIdentifierResolvable now supports emoji IDs and pre-encoded unicode
* forgot to return the identifier and not the emoji itself
* using ? in JSDoc instead of |null
2017-04-12 06:32:18 +02:00
bdistin
c5e2ea7458
Break reconnect loop if you client.destroy in the disconnect event ( #1371 )
...
* Break reconnect loop if you client.destroy in the disconnect event
* fix lint/long line?
* God this is So UGLY, why...
* Update WebSocketManager.js
* Update WebSocketManager.js
2017-04-12 06:31:45 +02:00
aemino
39f7dc018a
Make FEC and PLP non-default ( #1372 )
...
I considered it might be useful to have something exposed that allows the end-user to set these if they want, but our current code doesn't allow for that. It'll remain an internal feature for the time being.
2017-04-12 06:30:48 +02:00
SpaceEEC
6187c17097
readded inviteLink endpoint ( #1369 )
2017-04-11 22:21:28 +02:00
xDdude
a49d4e6d43
getters for decibel and logarithmic volume ( #1355 )
...
* getters for decibel and logarithmic volume
I don't really understand where the conversion numbers come from but having this allows for an easy way to get the volume back based on what method you used to set it. I think the math is right, but yeah I've just used the conversion numbers from the other methods.
* fix trailing spaces
2017-04-11 18:21:00 +01:00
Drahcirius
84aab1021a
reaction remove fix ( #1366 )
2017-04-11 18:10:14 +01:00
Amish Shah
25e0048bbf
remove useless waiting reference
2017-04-11 17:59:27 +01:00
Gus Caplan
8dfc96d460
fix message acking ( #1368 )
2017-04-11 17:54:25 +01:00
Amish Shah
6495df50f9
Fix sequential rate limiting
2017-04-11 17:54:03 +01:00
bdistin
9365272baf
Fix embeds getting converted to collection on edgecase ( #1356 )
2017-04-10 14:30:06 -04:00
SpaceEEC
e60d2bd175
Fix MessageMentions properties always being null or empty ( #1357 )
2017-04-10 20:06:00 +02:00
Gus Caplan
0a56fa0aae
websocket cleanup ( #1346 )
...
* websocket cleanup
* resume event
* Update Resumed.js
* Update WebSocketManager.js
2017-04-10 20:02:17 +02:00
Gus Caplan
8436cbe8b1
Update User.js ( #1351 )
2017-04-10 16:20:07 +01:00
aemino
6d4fe89212
Volume stuff docs fixes ( #1354 )
...
* Volume stuff docs fixes
* 10/10 for spelling
2017-04-10 11:50:33 +01:00
Schuyler Cebulskie
3bc90dcbf1
Add export for MessageMentions
2017-04-10 03:21:14 -04:00
Schuyler Cebulskie
ebcf61ff9c
Remove MessageMentions constructor docs
2017-04-10 03:12:57 -04:00
Schuyler Cebulskie
4fa5ceed83
Fix some docstrings
2017-04-10 03:07:05 -04:00
Schuyler Cebulskie
fa016b6b41
Clean up Message#mentions and message updates
2017-04-10 03:01:50 -04:00
Crawl
878e5d7c76
Fix example typo
2017-04-10 00:39:07 +02:00
Gus Caplan
e5293647a3
(╯°□°)╯︵ ┻━┻ ( #1347 )
2017-04-07 12:13:13 +02:00
aemino
ab589fa5f2
VoiceConnection speaking bugfix ( #1343 )
...
Looks like I made a typo...
2017-04-06 16:20:34 +02:00
Crawl
d1d8179460
Revert "add auth session change handling" ( #1342 )
...
* Revert "User settings (#1337 )"
This reverts commit 801633b970 .
* Revert "add auth session change handling (#1339 )"
This reverts commit 5d85de0883 .
2017-04-06 13:50:31 +02:00
Gus Caplan
801633b970
User settings ( #1337 )
...
* user settings bruh
* remove development dump
* emit stuff
* i am so done
* Update ClientUserSettings.js
* modularize
* Update ClientUserSettings.js
* Update Constants.js
* Update ClientUserSettings.js
* Update RESTMethods.js
* Update ClientUserSettings.js
* <.<
2017-04-05 22:03:33 +02:00
Gus Caplan
5d85de0883
add auth session change handling ( #1339 )
...
* add auth session change handling
* eek
2017-04-05 21:52:55 +02:00
SpaceEEC
6ce24398ab
Fix messageReactionAdd internally & doc fix ( #1341 )
2017-04-05 21:34:14 +02:00
Amish Shah
970bfffc46
Fix emoji events ( fixes #1333 )
2017-04-05 17:05:27 +01:00
SpaceEEC
ecb8655dac
Document readonly and private properties ( #1338 )
2017-04-03 20:05:36 +02:00
Crawl
4be08406e6
Fix travis build error
2017-04-03 02:06:08 +02:00
Crawl
047cd2da5c
Fix fetchRecommendedShards
2017-04-03 01:51:15 +02:00
Crawl
6910585f69
Fix lowercase comments
2017-04-02 19:47:00 +02:00
aemino
8716702b59
Add FEC and PLP support for Opus encoding ( #1264 )
...
* Add FEC and PLP support for Opus encoding
* Silently fail if the Opus engine doesn't support CTL
* Fixed inversed max/min functions
2017-04-02 19:43:46 +02:00
Crawl
09489e2b9f
Fix indent on doc string
2017-04-01 21:19:39 +02:00
Isabella
d189b51da5
explicit content filter for guilds ( #1329 )
2017-04-01 21:16:30 +02:00
SpaceEEC
270bbc2731
to Endpoints.CND with you ( #1330 )
2017-04-01 21:16:15 +02:00
Crawl
7ffbbc7f07
Fix _sortedRoles in Role.js
2017-04-01 16:28:19 +02:00
Crawl
358131fb6f
Fix _sortedRoles in Guild.js
2017-04-01 16:27:55 +02:00
SpaceEEC
d2e3d6dc63
replaced 'del' with 'delete' ( #1328 )
2017-04-01 16:16:05 +02:00
Gus Caplan
cb3f6d9646
http rewrite (actually works this time!!1!) ( #1257 )
...
* rewrite http
* browser fun
* all the mimes dammit
* i need a newline
* whoops
* forgot about this
* use promises and HTTPRequest.method
* fluent
* move httpclient to external module
* branding
* middleware
* revert middleware
2017-04-01 09:04:01 +02:00
Gus Caplan
a4e0af2e45
make positions for channels and roles nicer ( #1211 )
...
* make role calculated position nicer
* make channels sortable in a nice way too
* stupid git web rebase editor
* Update Guild.js
* Update Guild.js
* Update Guild.js
* Update Guild.js
* Update RESTMethods.js
2017-04-01 08:28:54 +02:00
TimeForANinja
c4e5292516
resolve for not loggedin clients ( #1301 )
2017-04-01 08:05:46 +02:00
bdistin
bca101aac8
Fix for #1089 & Message Reactions ( #1236 )
...
* [requires more testing] Fix #1089
* Clean up unshift
* Remove <Message>.patch(data)
Nothing calls this method any longer. It is also a private method, so this shouldn't be a breaking change.
* Fix Message Reactions
Purposely reference previous reaction collections, so collection is consistant accross all message edits (no unnecisary data duplication). Makes #1221 extranious.
* Some Data Packets come Incomplete
And several properties can be falsy, so instead of || opted for hasOwnProperty().
* No reason MessageTypes should be an object...
* Use `prop in obj` isntead of hasOwnProp
per @Gawdl3y
2017-04-01 01:51:12 -04:00
SpaceEEC
07740955cf
Fixing stuff, borked by #1323 ( #1326 )
...
* several things
* see my comment
* Fixed missing stuff and returned undefined
2017-04-01 07:29:31 +02:00
Gus Caplan
305a7d14af
whoops ( #1325 )
2017-03-31 23:13:41 +02:00
Gus Caplan
e86ec7de6f
Update Constants.js ( #1324 )
2017-03-31 19:42:16 +02:00
Gus Caplan
1df3b84da6
rewrite endpoints for consistancy and modularity ( #1323 )
...
* rewrite endpoints for consistancy and modularity
* clean up a bit
* add missing endpoint
2017-03-31 18:36:09 +01:00
SpaceEEC
e08f2bad30
Add guild#createRole resolve permissions and RoleData optional ( #1321 )
...
* resolving permissions
* make RoleData optional
2017-03-31 12:55:23 +02:00
Crawl
f73e6a3e4d
Fix typo in MessageEmbed#video
2017-03-30 22:14:06 +02:00
Gus Caplan
dd3831fa1e
Remove type error from Collection#exists() ( #1320 )
2017-03-30 11:01:07 -04:00
1Computer1
5334682682
Add missing properties for MessageEmbed ( #1300 )
...
* Add missing properties
* Derp
2017-03-30 08:47:34 -04:00
Gus Caplan
104f3397af
Add defaultRole to guild ((╯°□°)╯︵ ┻━┻) ( #1311 )
...
* (╯°□°)╯︵ ┻━┻
* Update Guild.js
2017-03-30 08:44:08 -04:00
Vap0r1ze
61f5051dfd
Fix invite resolver ( #1318 )
...
Old version only worked with temporary links.
Now works with: vanity invites, and permanent invites.
2017-03-30 08:41:18 -04:00
SpaceEEC
55141b408b
Fix ( #1306 ) MessageRection#fetchUsers() return a collection istead of an array
2017-03-30 12:02:00 +02:00
Schuyler Cebulskie
c73b9483f4
Clean up and add comments
2017-03-22 01:16:30 -04:00
Schuyler Cebulskie
cff7069275
Switch from for..of to forEach
2017-03-22 01:12:46 -04:00
Drahcirius
8444f19662
Added mentions.members ( #1271 )
...
* Added mentions.members
* made member.mentions undefined on when not on guild channel
* changed property to getter
* Update Message.js
2017-03-22 01:08:25 -04:00
SpaceEEC
beffcd31cd
fix guildWebhooks endpoint ( #1284 )
2017-03-21 16:31:02 +00:00
Gus Caplan
dd8907472c
nonce has to be a uint64 :< ( #1240 )
...
* nonce me daddy
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* Update RESTMethods.js
* (╯°□°)╯︵ ┻━┻
* Update RESTMethods.js
* Update RESTMethods.js
2017-03-21 03:17:20 -04:00
Gus Caplan
3e0c0f44a2
make useragent better because data is fun ( #1244 )
...
* Update UserAgentManager.js
* Update UserAgentManager.js
* gawdl3y is one of the most pants-on-head retarded people i have ever met
* Update UserAgentManager.js
* Update UserAgentManager.js
* Update UserAgentManager.js
* Update UserAgentManager.js
2017-03-21 03:12:20 -04:00
Schuyler Cebulskie
58068fdae9
Change check for array/number, and fix docs
2017-03-21 02:53:08 -04:00
Schuyler Cebulskie
245bd91101
Allow Permissions constructor to take array of perms
2017-03-21 02:45:11 -04:00
Schuyler Cebulskie
79278bccb4
Fix Permissions.resolve to return a combined bitfield for arrays
2017-03-21 02:16:18 -04:00
Programmix
633e3ca896
Fix addRole/removeRole when the user has/doesn't have the role ( #1288 )
2017-03-21 01:52:43 -04:00
Schuyler Cebulskie
2e54f6d90d
Was worth a shot
2017-03-21 01:49:12 -04:00
Pg Biel
64ce829ab2
Make FetchMessage work for non-bot users ( #1291 )
...
* [WIP] make fetchMessage work for normal users
wip
* Actual thing
* not WIP anymore
better docs
* oops
* better stuff
* Update TextBasedChannel.js
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2017-03-21 01:42:39 -04:00
Schuyler Cebulskie
2349238f69
Fix #1287 (Role#serialize)
2017-03-21 01:24:53 -04:00
Schuyler Cebulskie
136cab240d
Add new ESLint rules
2017-03-17 01:23:39 -04:00
Crawl
2237749d29
Fix richEmbed attachFile
2017-03-16 17:07:11 +01:00
SpaceEEC
6983798820
Fix optional args for sendFiles ( #1278 )
2017-03-16 16:20:37 +01:00
Gus Caplan
94062d19dd
Add message/channel/guild acknowledging ( #1239 )
...
* add acking
* 👀
* Update RESTMethods.js
* Update TextBasedChannel.js
* Update RESTMethods.js
* Update Guild.js
* Update TextBasedChannel.js
* Update Message.js
* super shitty names
* Update GroupDMChannel.js
* Update DMChannel.js
* Update TextChannel.js
2017-03-16 09:38:12 -04:00
Gus Caplan
fa609caee2
remove pako ( #1258 )
2017-03-16 09:15:48 -04:00
Crawl
1f2d8bfbc1
Add missing sendFiles doc and on channels
2017-03-16 00:47:05 +01:00
bdistin
8729ee6a1d
Fix #1253 : Permission Overwrites Resolution ( #1255 )
...
* Fix #1253
* apparently @ everyone role can be undefined
* Fix oops
* Fixes possible mutiple roles named '@everyone'
* Clean up order/logic
2017-03-15 15:29:34 +01:00
Gus Caplan
a82d9f1fbb
add multi-file support ( #1268 )
...
* add multi-file support
* (╯°□°)╯︵ ┻━┻
(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻(╯°□°)╯︵ ┻━┻
* stupid git web rebase editor - Gus2k17
* Update TextBasedChannel.js
* Update TextBasedChannel.js
2017-03-15 15:10:49 +01:00
SpaceEEC
6b26d28c06
Fix ( #1262 )
...
Not ignoring the filterOld boolean when a number is being passed instead of collection or array
2017-03-14 22:58:21 +01:00
Crawl
4ef0ec491c
Add arrow-parens eslint rule & fix inconsistencies
2017-03-13 15:56:00 +01:00
Motion
cee0d58fb8
Added docs warning for acceptInvite method ( #1267 )
...
Added docs warning for acceptInvite method (user account only iirc)
2017-03-13 07:04:31 +00:00
1Computer1
bbd89585c6
Add RichEmbed fields error handling ( #1243 )
...
* RichEmbed fields error handling
* Fix consistency
* Update RichEmbed.js
2017-03-09 20:58:46 -05:00
bdistin
14ae7cdf17
[Docs] Evaluated Permissions References ( #1250 )
...
* Docs / Permissions Overwrites Reference
* Docs / Evaluated Permissions Reference
* Clarify role.permissions is not evaluated
* Update Role.js
2017-03-09 18:32:44 -05:00
Gus Caplan
2897692cf1
fix created timestamp precision ( #1241 )
...
* fix created timestamp precision
* perf
* Update Snowflake.js
* gawdl3y was butthurt
* Update Snowflake.js
2017-03-09 18:31:31 -05:00
Schuyler Cebulskie
21babf8859
Update GuildMember#hasPermission(s) to match Role
2017-03-07 02:53:12 -05:00
Schuyler Cebulskie
3e5096f9fe
Update Role#hasPermission, and deprecate hasPermissions
2017-03-06 19:58:42 -05:00
Schuyler Cebulskie
df2333ac82
Fix Role#hasPermission
2017-03-06 19:38:58 -05:00
Schuyler Cebulskie
b926cd0dcd
Remove redundant Markdown
2017-03-06 12:22:53 -05:00
Schuyler Cebulskie
6211119928
Fix Permissions.ALL on Node 6
2017-03-06 12:21:42 -05:00
Schuyler Cebulskie
4f7e0c41ee
Doc fixes
2017-03-06 02:34:39 -05:00
Schuyler Cebulskie
30dd9be900
Pass the member into new Permissions instances
2017-03-06 02:29:35 -05:00
Schuyler Cebulskie
427eec8ccb
Fix ESLint failure
2017-03-06 02:27:04 -05:00
Schuyler Cebulskie
16fe48d405
Overhaul Permissions utilities (EvaluatedPermissions no more)
2017-03-06 02:22:42 -05:00
Programmix
055775de2f
Fix for #1219 (sodium methods) ( #1220 )
...
* Change node-opus methods
* Try using crypto_secretbox(_open)_easy
* Wrong open method name
2017-03-04 08:33:19 +00:00
Amish Shah
33de408a70
fix bulk delete endpoint
2017-03-04 00:35:54 +00:00
1Computer1
e7b0afbd1f
Add color role, hoist role getters to GuildMember ( #1188 )
2017-03-01 04:53:12 -05:00
Schuyler Cebulskie
a5740e83f4
Change burst mode warning
2017-03-01 04:51:46 -05:00
Schuyler Cebulskie
7473fd513e
Remove InviteOptions typedef, rephrase
2017-03-01 04:48:26 -05:00
SpaceEEC
fc42a46e5b
Invite options ( #1223 )
...
* test
* updated descripton
* Update GuildChannel.js
2017-03-01 04:45:05 -05:00
bdistin
25bb602d5a
Add Collection.clone() ( #1238 )
...
* Add Collection.clone()
* More efficient cloning, and concat update
* Update Collection.js
* Update Collection.js
2017-03-01 04:41:36 -05:00
Kelvin Wu
01d8d32ea9
Add typedef for GuildmemberEditData. ( #1230 )
...
* Add typedef for GuildmemberEditData.
* Farm commits
* Make terms consistent.
2017-03-01 04:36:17 -05:00
lipgloss
0e6b5e9193
Change update to create ( #1231 )
2017-02-27 07:03:24 +00:00