Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00
Schuyler Cebulskie
b91f8f27be
Fix resolveBuffer file failure behaviour
2017-02-15 16:37:31 -05:00
Gus Caplan
ec1ed15c88
Fix request handling ( #1180 )
...
* clean up ratelimiters, and disable burst until some big questions are handled
* burst mode is a work
* fix burst again
2017-02-11 12:04:24 +00:00
Mike
dd6dd6fb59
Added support for adding users to guild 2 ( #1179 )
...
* Added support for adding users to guild
added RESTMethods#AddGuildMemberOptions and Guild#addMember with typedef
AddGuildMemberOptions to be able to add user to guild as a member
through `PUT/guilds/{guild.id}/members/{user.id}`
https://discordapp.com/developers/docs/resources/guild#add-guild-member
* fixing lint errors
* Changes based on discussion
* Changes based on discussion 2
* Changes based on discussion 3
Yay! More changes.
2017-02-08 21:04:39 +00:00
Zack Campbell
2518a0f7e2
Fix for incorrect oldMember in guildMemberUpdate event after addRole ( #1129 )
...
* Fix for incorrect oldMember in guildMemberUpdate event after addRole
`addRole` would modify the cached GuildMember rather than letting it be handled internally when a guild member update packet is received from Discord, leading to the `oldMember` and `newMember` being identical following a call to `addRole`
This is currently how `addRoles` does it, and a correct oldMember is passed to the `guildMemberUpdate` event following a call to `addRoles`
* Return cloned member with added/removed role
So we can return a member object with the added/removed role without affecting the member object sent to `guildMemberUpdate`
* Wait for guildMemberUpdate and return updated GuildMember
* Fix linter errors
* Remove listeners after 10 seconds
2017-02-08 17:38:57 +00:00
Gus Caplan
7c8f534a38
add random color ( #1175 )
...
* add random color
* Update ClientDataResolver.js
* Update ClientDataResolver.js
2017-02-07 01:19:43 -05:00
Schuyler Cebulskie
b859ba7639
Increase some documentation detail
2017-02-05 23:00:36 -05:00
Gus Caplan
59ff1d99ba
fix types for snowflakes ( #1156 )
...
* fix types for snowflakes
* Update TextBasedChannel.js
2017-02-03 21:37:58 -05:00
Gus Caplan
cee9e4839c
fix sending code when you aren't splitting the message ( #1162 )
...
* fasguhq4wbyghjehuibh
kjgewqhuilb
* Update RESTMethods.js
2017-02-02 16:21:26 +00:00
Gus Caplan
1e94a9e2a4
serious role position stuff ( #1159 )
...
* serious role position stuff
* kill meh
* Update Role.js
* Update Guild.js
* Update Role.js
2017-02-01 22:02:16 +00:00
bdistin
a2d6791cd8
Fix CodeBlock Splitting ( #1160 )
...
* Fix CodeBlock Splitting
* fix changes requested
2017-02-01 15:31:57 -05:00
Alex
ed42d7bd85
Fix backwards GuildEmojiCreate parameters ( #1153 )
2017-01-31 00:49:11 -05:00
Schuyler Cebulskie
f4724d61b2
Fix #1095
2017-01-30 22:54:37 -05:00
Gus Caplan
565c640bc6
Add role support to emoji creation ( #1141 )
...
* add role support to emojis
* specify types
2017-01-30 22:47:27 -05:00
Alex
18729b25c7
Add support to edit emojis ( #1142 )
...
* Add support to edit emojis
* Fixes for coding style.
* Add and use guildEmoji constants for updateEmoji
* Just use the Constant
* Fix typo in edit documentation
* Specify property types
* Fix ridiculous typo.
* Update Emoji.js
2017-01-30 22:47:05 -05:00
Digitroinc
448c93615b
fix splitting messages #1148 )
...
* fix for issue #1120
* build fix
2017-01-29 18:58:35 +00:00
Pg Biel
c7f5b44e03
Add User.lastMessage, GuildMember.lastMessage and TextBasedChannel.lastMessage ( #1135 )
...
* Add User.lastMessage
* User.lastMessage and GuildMember.lastMessage
* User, GuildMember and TextBasedChannel lastMessage
* Update MessageCreate.js
2017-01-26 21:24:08 +00:00
Gus Caplan
87b600f78f
switch to os shim for safety ( #1136 )
...
* switch to os shim for safety
* Update Client.js
2017-01-26 21:21:43 +00:00
Alex
ba7c2db364
Fix createEmoji/deleteEmoji action name. ( #1110 )
2017-01-24 21:56:19 +00:00
Alexander
5173583e26
Fix empty search query parameters ( #1119 )
...
The search function was sending request to stuff like:
search?author_id=&content=&channel_id=135823828352838352
2017-01-24 21:55:59 +00:00
Programmix
c1a5bee61f
GuildMembersChunk packet handler hotfix ( #1125 )
...
* GuildMembersChunk packet handler hotfix
* Add limit, resolve properly if a query is used
* Document new GuildMemberChunk param
2017-01-24 21:55:36 +00:00
Programmix
c73e501243
Fix RESTMethods.removeMessageReaction ( fixes #1114 ) ( #1126 )
2017-01-21 19:48:17 -05:00
Gus Caplan
306ea97f99
fix guild member fetching edge cases ( #1115 )
...
* thx4tipprogrammixluvubye
* consistancy
* make this loop for some reason
* so impatient
2017-01-21 16:37:28 +00:00
Gus Caplan
0300601649
remove redundant editing ( #1116 )
...
* remove redundant editing
* update docs
2017-01-19 17:11:24 +00:00
Gus Caplan
3f4cbd07dd
add voice region getting ( #1108 )
...
* add voice region getting
* clean up this mess
* add docstrings
* Update VoiceRegion.js
* Update RESTMethods.js
2017-01-18 19:14:44 -05:00
Gus Caplan
8c220e76ec
Fix GuildDelete typing stopping ( #1098 )
...
* whoops
* ugh
* Update GuildDelete.js
2017-01-14 23:33:26 -05:00
Programmix
d10ca8e7ba
Add VoiceChannel#full and improve joinable/join permission checks ( #1100 )
...
* Improve voice channel join permission checks
* Update ClientVoiceManager.js
2017-01-14 23:32:17 -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
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
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
5caa7df1d8
Add centralised reply option to message options
2017-01-10 19:25:05 -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
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
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
Amish Shah
4c8e4fde6f
Fix remove reaction endpoint
2016-12-30 18:31:48 +00:00
Amish Shah
50dc9addf1
Fix ESlint error, remove 'long' module import
2016-12-30 17:28:23 +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
beffb390e6
Add search ( #1043 )
...
* add search
* Update ClientDataResolver.js
2016-12-30 02:44:19 -05:00
Gus Caplan
22b1c425ac
add ClientUser.settings ( #1041 )
...
* add user settings
* Update Ready.js
2016-12-29 18:58:39 +00: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