Crawl
516c2025ba
Use the uglifyjs-webpack-plugin beta on npm
2017-07-08 06:32:29 +02:00
Crawl
0c34f3a313
Update dependencies & make webpack great again
2017-07-05 11:53:53 +02:00
Gus Caplan
e3cd000ec0
update http options to fit discord spec ( #1656 )
...
* Update Constants.js
* Update APIRequest.js
* Update Invite.js
* Update Constants.js
2017-07-05 09:10:06 +01:00
Gus Caplan
bcbf834c95
use webhooks cache in guild audit log ( #1660 )
...
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
* Update GuildAuditLogs.js
2017-07-05 09:08:13 +01:00
Gus Caplan
7f809395af
add new unique property ( #1659 )
2017-07-05 09:02:40 +01:00
Gus Caplan
39a3e72894
allow content in edit options like in message send options ( #1657 )
2017-07-05 09:01:07 +01:00
Gus Caplan
f8a1f2c23b
fix this again ( #1655 )
2017-07-04 03:58:54 +02:00
Gus Caplan
e57bfc9313
undefined check to merge default ( #1654 )
2017-07-04 03:48:20 +02:00
Drahcirius
b1d9084345
Remove RichEmbed in favour of MessageEmbed ( #1584 )
...
* remove RichEmbed in favour of MessageEmbed
* fix provider typo
2017-07-04 00:53:22 +02:00
SpaceEEC
c42e53d70d
Fixed User#fetchProfile, UserProfile#premium and added #flags ( #1629 )
...
* Fixed User#fetchProfile, UserProfile#premium and added #flags
* made UserProfile#flags a getter and stored the raw bitfield under UserProfile#_flags
* lowercased Flags
2017-07-04 00:28:53 +02:00
SpaceEEC
3da95d7e68
Corrected some docstrings ( #1611 )
...
* corrected some docstrings
* merge master
* fixed MessageSearchResult typedef and moved the note for the hit property to there
2017-07-04 00:22:48 +02:00
Gus Caplan
2eb3720001
move raw call so that any cache events happen before ( #1653 )
...
* move raw call so that any cache events happen before
* Update WebSocketConnection.js
* Update WebSocketConnection.js
2017-07-04 00:10:28 +02:00
aemino
afcf43aef6
Add VoiceConnection errors ( #1649 )
2017-07-04 00:09:38 +02:00
SpaceEEC
1c901cee7b
Fixed wrong parenthesis for Webhook#send and Webhook#sendSlackMessage ( #1648 )
2017-07-04 00:09:07 +02:00
SpaceEEC
3fa880df5b
Made (hopefully) all url related methods accept an options objects ( #1617 )
...
and removed a leftover in User#avatarURL
2017-07-04 00:08:24 +02:00
SpaceEEC
ee3a2415e4
Removed deprecated file option from MessageOptions ( #1614 )
2017-07-04 00:06:29 +02:00
bdistin
d266804953
rest api route fixes ( #1645 )
...
* start of the rest api router fixes.
* fix more missed code
2017-07-02 09:43:10 +01:00
bdistin
8da557faab
Fix client.fetchApplication ( #1644 )
...
previously it returned: `this.api.oauth2.applications was not a function`, missed fixing with the api router change
2017-07-02 01:33:21 +01:00
aemino
2b56de7728
Expose DiscordAPIError and API error constants ( #1641 )
...
* Expose DiscordAPIError
* Expose API error constants
* Add typedef for APIError
* Integligently forgot to save file
2017-07-02 01:20:35 +01:00
aemino
62537b7deb
Ignore setSpeaking requests when VC isn't connected ( #1638 )
2017-07-01 10:14:41 +01:00
Gus Caplan
5ecd5f7d69
REST API speed improvement ( #1577 )
2017-07-01 10:14:17 +01:00
Gus Caplan
6bc7b3e068
add user account checkbox ( #1640 )
2017-07-01 10:11:15 +01:00
Gavin Wainwright
7b44262346
Destructure certain imports ( #1634 )
2017-06-29 00:43:26 +01:00
SpaceEEC
029efe5cb0
Fixed Guild#deleteEmoji, it's now using the emoji's id ( #1633 )
2017-06-28 18:17:57 +01:00
Gus Caplan
5891c0b4d7
update tern file to actually work ( #1630 )
2017-06-28 15:29:49 +01:00
Gus Caplan
ead6d80c36
Fix toLowerCase errors in GuildAuditLogs ( #1627 )
2017-06-28 15:27:29 +01:00
Drahcirius
45cc175851
setTimeout should use args ( #1623 )
2017-06-27 20:22:17 +01:00
Will Nelson
0a337a4646
make token not enumerable ( #1620 )
2017-06-25 20:48:30 +01:00
Gus Caplan
63e54982f4
Errors Standardization ( #1246 )
...
* errors and stuff
* more errors
* all the errors
* fix build
2017-06-25 18:48:05 +01:00
Gus Caplan
602fe06f88
update docs for discord api error ( #1575 )
...
* aaaaa
* Update DiscordAPIError.js
2017-06-24 23:36:48 +01:00
Gus Caplan
cada8763a9
clean up cdn resources ( #1597 )
...
* Create Constants.js
* Update Constants.js
2017-06-24 23:32:48 +01:00
aemino
4ae4c97589
Fix VoiceConnection#authenticateFailed race condition ( #1601 )
2017-06-24 23:28:49 +01:00
SpaceEEC
201ecd25a2
renamed OAuth2Application#reset to resetSecret and added resetToken ( #1541 )
2017-06-24 23:26:09 +01:00
Gus Caplan
7f8cc9c297
sanity changes to search ( #1593 )
...
* Create Search.js
* Create Guild.js
* Create TextBasedChannel.js
* Create Search.js
* Create Search.js
* Create Guild.js
* Create TextBasedChannel.js
* Create Search.js
2017-06-24 23:23:45 +01:00
Mythic
fd79539ec3
Improve Message's ID attribute documentation ( #1450 )
...
Remove the implication that a Message object's ID is unique only to the channel it was sent on
Message ID's are snowflakes, and as stated in Discord's API documentation, globally unique throughout Discord
2017-06-24 23:21:21 +01:00
Morgan (Fallen)
e506995e4f
Update voice and shard examples ( #1608 )
...
* Update voice.js
message.channel.sendMessage(...) to message.channel.send(...)
* Update shard.js
message.channel.sendMessage(...) to message.channel.send(...)
* Update voice.js
* Update shard.js
* Update voice.js
2017-06-24 23:20:29 +01:00
Mstrodl
1fadd0f859
Update avatar example for v12.0 ( #1610 )
...
User.displayAvatarURL was changed from a property to a method so I changed the example accordingly
2017-06-24 23:12:22 +01:00
SpaceEEC
e671a010cb
added Guild#setExplicitContentFilter ( #1583 )
2017-06-24 23:03:37 +01:00
SpaceEEC
4f23822264
Wait for the websocket event when creating a guild ( #1524 )
...
* Wait for the websocket event when creating a guild
* using TOOK_TOO_LONG error
* resolve after timeout with an unavailable guild object
2017-06-23 20:49:56 +01:00
Gus Caplan
66cc5b2b53
URI Encoding for reasons ( #1606 )
2017-06-17 10:47:37 +01:00
SpaceEEC
00eebd34cb
Correctly mapping overwrites when creating a channel and renamed all relevant property names as of #1562 ( #1570 )
...
* using correct properties to apply permissionOverwrites
and fixed `GuildChannel#clone`
* also arrays should be mapped and correct properties taking priority
* changed .deny and .allow to .denied and .allowed respectively
* whoops
2017-06-16 12:49:13 +02:00
DeJay
35e8601b3a
Replacing ticks ( #1589 )
...
http://i.imgur.com/7Xbaawm.png
2017-06-13 21:55:54 +02:00
SpaceEEC
ecb8424f52
fixed typo in Guild#createEmoji ( #1588 )
2017-06-12 11:26:36 -04:00
Amish Shah
b694ab1b80
Add internal sharding options
2017-06-11 11:36:58 +01:00
Drahcirius
355b1cca4a
Remove global flag from ffmpeg tutorial doc ( #1582 )
2017-06-10 23:54:17 +01:00
SpaceEEC
d6041f9fb3
Added Client#status and Message#type typedefs ( #1571 )
...
* typedef for MessageTypes and linked Client#status to Status
* should be singular
* typedef for Voiceconnection#status
2017-06-09 16:27:49 +02:00
Crawl
7b3a005b65
Remove createCollector from all channels
2017-06-08 14:51:21 +02:00
Crawl
0898e1dd5b
Fix createMessageCollector example
2017-06-08 14:50:26 +02:00
Schuyler Cebulskie
3bf8192812
Switch to User#tag in web builds example
2017-06-07 23:00:43 -04:00
Évelyne Lachance
06f4c679d3
Add count optional argument to Collection methods ( #1552 )
...
* Add `count` optional argument to Collection methods
[NON-BREAKING CHANGE]
An optional `count` argument is added to the following methods:
- random() and randomKey()
- first() and firstKey()
- last() and lastKey()
If `count` is used, the method returns an array instead of only the value. Performance impact non-existent for existing code. Performance for returning an array has been measured and this is the fastest I could find (array[i] = value is faster than array.push()).
* Update Collection.js
Fixed spacing/line length errors according to suggestions by codacy/pr
* Fixed docs
Added proper `@returns {*|Array}` as the methods might return either. Also added params where missing (whoops)
* Further doc fixes
Per Crawl's comments, fixed (i + 1) spacing as well as fixed {Integer} to {number}
* random() and randomKey() fix
Per Hydra's comment, random() and randomKey() now ensures unique values.
I've also resolved potential issues with requesting a count higher than the collection size. A collection with 10 items will only ever return at most 10 items using the `count` property.
* Can I facepalm harder
Had wrong header comments ^_^
* Fixed for "values/value" and Omited
Also, added "Positive" integer check.
* looks like I "omitted" a change, there.
* Update Collection.js
* Update Collection.js
* Update Collection.js
2017-06-07 18:52:41 -04:00