SpaceEEC
37a3a6baf9
removing more deprecation leftovers ( #1492 )
2017-05-14 23:44:39 +02:00
bdistin
25096047f1
Fix Permissions now that member is deprecated ( #1491 )
2017-05-14 22:40:06 +02:00
Crawl
ca926ee404
Remove all deprecated methods / props
2017-05-14 20:15:55 +02:00
Gus Caplan
6ac2252794
make default avatar resolving better ( #1484 )
...
* Update Constants.js
* Update User.js
* Update Constants.js
* Update Constants.js
2017-05-13 17:41:32 +02:00
SpaceEEC
ff3e602134
Failing to resolve a role should reject and not throw an error ( #1483 )
2017-05-12 15:30:46 +02:00
meew0
83f2c62c3f
Fix the mention example in the USERS_PATTERN doc comment
...
Previously it was a channel mention. Thanks @Hackzzila.
2017-05-10 13:11:21 +02:00
SpaceEEC
f95f18b586
Handing promise rejections from GuildAuditLogs#build to the user ( #1474 )
...
* handing guildauditlog's promise rejections to the user
* Returning a new Promise to resolve a Promise.all is unnecessary.
Also for the docs, it returns a Promise<GuildauditLogs>, not GuildAuditLogs directly.
* totally did not removed that line
2017-05-09 00:19:24 +02:00
1Computer1
6566c0d3c5
Deprecate aliases ( #1469 )
2017-05-06 01:22:15 +02:00
SpaceEEC
5bfc688bb0
Using a traditional for loop rather than a for in loop for options.files ( #1461 )
2017-05-06 01:09:01 +02:00
SpaceEEC
e66fa145d2
fix fetchMentions' auth header, options and data mapping ( #1457 )
...
* fix fetchMentions' auth header, options and data mapping
* vscode strikes again
* switched to Util.mergeDefault
* vscode
* removed duplicated optionals and switched to instanceof
2017-05-06 01:04:12 +02:00
SpaceEEC
d9e5bdea19
added Invite#presenceCount and Invite#memberCount ( #1460 )
...
* added Invite#online and Invite#memberCount
* requested change
2017-05-05 23:24:02 +02:00
SpaceEEC
a685d24504
using correct properties for invites ( #1467 )
2017-05-05 23:19:07 +02:00
SpaceEEC
128b4ee3e8
update GuildAuditLogs for MESSAGE_DELETE and fixed extras ( #1464 )
...
* update GuildAuditLogs for MESSAGE_DELETE and fixed extras
* correct oder of targets
2017-05-05 19:44:54 +02:00
Gus Caplan
caf96339e0
Update GuildAuditLogs.js ( #1456 )
2017-05-04 00:50:08 +02: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
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
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
Isabella
a02e10926d
Stop using deprecated methods within discord.js ( #1441 )
...
* fix deprecation stuff
* fixed a check
2017-05-01 10:14:26 +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
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
8e5c600227
Make OAuth2Application backwards compatible again
2017-04-30 11:21:48 +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
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
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
SpaceEEC
956372731f
Using ws.connection.status rather than undefined ws.status ( #1429 )
2017-04-28 21:27:30 +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
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
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
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
c095610bb4
Change docstring
2017-04-23 06:50:43 +02: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
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
Amish Shah
78895ace17
Fix reactions not being uncached once they hit a count of 0
2017-04-12 21:22:08 +01:00
Drahcirius
84aab1021a
reaction remove fix ( #1366 )
2017-04-11 18:10:14 +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
8436cbe8b1
Update User.js ( #1351 )
2017-04-10 16:20:07 +01: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
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
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
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
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
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
Gus Caplan
305a7d14af
whoops ( #1325 )
2017-03-31 23:13:41 +02: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
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
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
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
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
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
1Computer1
e7b0afbd1f
Add color role, hoist role getters to GuildMember ( #1188 )
2017-03-01 04:53:12 -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
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
Schuyler Cebulskie
f3a7f59824
Several improvements
...
- Rename Guild#updateChannelPositions -> setChannelPositions
- Allow Guild#setChannelPositions to take ChannelResolvables
- Prioritise ClientDataResolver#resolveChannel's string case
- Minor cleanup
2017-02-25 15:29:32 -05:00
Programmix
a029999b09
Doc fixes, mostly pertaining to Snowflakes ( #1218 )
...
GUS!!!! @GusCaplan
2017-02-24 15:33:51 -05:00
Amish Shah
70b35c85d6
Merge branch 'indev-prism'
2017-02-23 20:19:26 +00:00
Amish Shah
8a2ec437e5
Merge branch 'master' into indev-prism
2017-02-22 20:37:59 +00:00
Gus Caplan
4c9d8d6cd7
add lots of group dm features ( #1208 )
...
* group dm stuff
* minor doc changes
2017-02-22 20:33:20 +00:00
Joschua Schneider
5c2086b351
Allow presence updating to allow null games ( #1186 )
...
* Adding resetGame functionallity
`setGame` method would allways result in an Object passed to `setPresence`.
Passing { game: null } (supported by discords WebSocket gateway to reset the current Game) to `setPresence` would still result in a Game Object sent to the endpoint.
Explicitly setting `game` to null should overwrite the `game` object provided by `localPresence` or `client.presence`.
This was neither supported by `setGame` or `setPresence`.
* Missing semicolons to resetGame and setPresence
* Fixing trailing spaces, commas and semicolons
* Moving resetGame functionality into setGame method
Minification of if statement in setPresence.
Removing resetGame method and adding a case for `game === null` to setGame method
* Adding missing space in setGame method
* Fix docs
2017-02-22 20:24:39 +00:00
lipgloss
f068010e96
Implement 'Modify Guild Channel Positions' ( #1198 )
...
* Adding shuffleArray method to utils
* Shuffle channels functionality on guild.
* Comment fix
* Removing shuffle functionality and replacing with a simple update
* Code review changes to method/variable names
* Update comment reference to channelId as well
* Updating jsdoc with typedef of ChannelPosition
2017-02-22 20:24:05 +00:00
Gus Caplan
566135d25b
move permission stuff to the resolver ( #1185 )
2017-02-22 20:11:11 +00:00
Gus Caplan
61e12c637b
Add support for more OAuth features ( #1203 )
2017-02-22 20:09:40 +00:00
Programmix
d09dfa4c37
Capitalize channel type constants ( #1209 )
2017-02-22 20:08:47 +00:00
Schuyler Cebulskie
b0338df7db
Add more required permissions to Guild#addMember
2017-02-21 15:09:46 -05:00
Schuyler Cebulskie
8d1bc30e40
Clean up dd6dd6f
2017-02-21 15:07:54 -05:00
Zack Campbell
db5259cdf1
Add RichEmbed#attachFile ( #1202 )
...
* Add RichEmbed#attachFile
Mostly for attaching local images that can be accessed within the embed image/author icon/footer icon via `attachment//filename.png` and the like.
* Update docstring to reflect valid param types
* Update TextBasedChannel.js
* Update RichEmbed.js
* Update RichEmbed.js
2017-02-21 14:29:37 -05:00
Kelvin Wu
d870b27ece
Message#member should be a nullable. ( #1205 )
2017-02-21 13:49:20 -05:00
Jamelele
1273bb42ec
Doc fixes ( #1197 )
...
* Improve ban/unban examples
* Fix example comments
* Replace nondescript 'user' parameter with 'some user ID'
* Update Guild.js
* Update Guild.js
2017-02-19 16:06:18 -05:00
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05: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
Will Nelson
cdb911f2af
update setImage documentation ( #1177 )
2017-02-08 17:18:10 +00:00
Alexander
cc3e7b26b1
Add convenience function RichEmbed.addBlankField ( #1139 )
2017-02-08 17:17:13 +00:00
Alex
ab5e57d94b
Create Emoji requires a base64 data uri ( #1154 )
2017-02-06 14:19:03 -05:00
Schuyler Cebulskie
d6f17a9319
Merge branch 'master' into indev-prism
2017-02-06 01:54:31 -05:00
Amish Shah
26becb570b
Fix #1168 (.hasPermission)
2017-02-04 20:58:39 +00:00
Gus Caplan
59ff1d99ba
fix types for snowflakes ( #1156 )
...
* fix types for snowflakes
* Update TextBasedChannel.js
2017-02-03 21:37:58 -05:00
Funnbot
0b5eeb08f3
clone topic in channel.clone() ( #1157 )
...
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
2017-02-03 21:37:32 -05: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
Schuyler Cebulskie
e8ac18489e
Merge branch 'master' into indev-prism
2017-02-01 15:29:45 -05:00
Gus Caplan
8da915f6a1
expose createDM ( #1151 )
...
* expose createDM
* Update User.js
* in v12 we are removing these, kay?
* Update GuildMember.js
* Update User.js
2017-01-30 22:56:14 -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
Programmix
5059c59a31
Message patching: clear mention collections ( #1138 )
...
* Message patching: clear mention collections
Fixes #1089
When discord sends an array of mentions, it is a full list of mentions -- therefore, we should clear the old mention collection. The same goes for when we re-analyze the message for channel mentions.
* Use Collection.clear() instead of new Collection
2017-01-29 19:02:54 +00:00
Gus Caplan
2beb77ab5c
check if a guildchannel is deletable ( #1143 )
...
* Update GuildChannel.js
* eghhh
* Update GuildChannel.js
2017-01-28 10:07:53 +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
Programmix
ba11f76284
Fix patching message reactions ( fixes #1071 ) ( #1137 )
2017-01-26 21:20:40 +00:00