Commit Graph

3147 Commits

Author SHA1 Message Date
bdistin
8c213e9088 fix(Message#pinnable): you can't pin system messages (#3279) 2019-05-18 19:06:15 +02:00
SpaceEEC
06b72ee19f fix(GuildMember): do not create a channel key when editing
This is to not break GuildMember#setNickname for the current user
2019-05-18 14:08:50 +02:00
Fong Jian Ping
e3d03adcf8 docs(ChannelCreationOverwrites): revert incorrect rename of "id" property (#3273)
Reverts one incorrect change made in #2734 (3021e5ce7f (diff-e5c54069adfa0d32480eb3cc9faeee20L979))

* Fix incorrect docs in Guild.js

* Update src/structures/Guild.js

Co-Authored-By: SpaceEEC <spaceeec@yahoo.com>

* Update Guild.js
2019-05-16 13:06:07 +02:00
anandre
363cec31bc docs(TextChanne): specify unit of rateLimitPerUser (#3272)
* Update TextChannel.js

Update `setRateLimitPerUser` description to specify the `number` is in seconds, per the Discord docs

* Update TextChannel.js

Add unit to the rateLimitPerUser property

* Update GuildChannel.js
2019-05-15 22:42:39 +02:00
SpaceEEC
c844a7b4e2 docs(Guild): fix typo in example of createChannel 2019-05-14 20:12:57 +02:00
Schuyler Cebulskie
e82633fb00 Bump version to 11.5.0 11.5.0 2019-05-11 19:05:10 -04:00
Schuyler Cebulskie
b2f89e4594 Add testing for Node.js 8-12 2019-05-11 19:00:03 -04:00
Schuyler Cebulskie
8fba786765 Update typings for news/store channels 2019-05-11 18:56:14 -04:00
Schuyler Cebulskie
43f2485c9c Document news/store channel types on Guild#createChannel 2019-05-11 18:11:34 -04:00
Schuyler Cebulskie
8a086e04ab Add news/store channel support to CHANNEL_CREATE 2019-05-11 18:11:19 -04:00
Schuyler Cebulskie
f30019dd4f Remove unnecessary import 2019-05-11 17:24:25 -04:00
Schuyler Cebulskie
5e4654ee07 Backport news/store channels 2019-05-11 14:58:46 -04:00
SpaceEEC
ee42bdfd76 feat(GuildMember): add support for voice kicking (#3246)
This backports e64773e21b (#3242)
2019-05-06 19:18:29 +02:00
SpaceEEC
67da457c0a fix/docs(Client): type status and do not throw an error if accessed before login 2019-05-05 13:44:34 +02:00
SpaceEEC
60013b7a10 fix(WebSocketConnection): stringify data when no websocket is available
[object Object] is not really descriptive
2019-05-04 21:00:49 +02:00
SpaceEEC
12e041bc2b typings(GuildChannel): add manageable getter 2019-04-17 21:39:46 +02:00
izexi
3cd224dc76 docs(Collection): fix findKey jsdoc (#3204) 2019-04-14 15:49:32 +02:00
SpaceEEC
923c945b4b fix(Guild): sort roles with the same position in the correct order (#3184) 2019-04-08 14:06:50 +02:00
Ryan Munro
831f988fe2 typings(Collection): add typings for partition (#3166) 2019-04-01 09:35:17 +02:00
izexi
5cd6d8d380 feat(Guild): add fetchBan and withReasons to fetchBans (#3170)
* add Guild#fetchBan() & backport BanInfo

* and the typings

* requested changes

* typings overloads

Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com>

* nullable reason typings

Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com>
2019-04-01 09:07:52 +02:00
Amish Shah
745e18b823 fix #3150: can now create dispatcher with 0 volume 2019-03-22 12:43:51 +00:00
Souji
be2f78851f docs/typings: RateLimitInfo#limit instead of requestLimit (#3132)
* fix doc for ratelimit data, fixes #3131

* adapt typings

* typings: unindent #region comments
2019-03-07 16:34:23 +01:00
Amish Shah
6e761eb030 fix typo 2019-02-26 13:10:39 +00:00
SpaceEEC
32ad56a562 docs(Guild): update createChannel examples to not use deprecated overload 2019-02-25 11:09:46 +01:00
Cam Cope
f61c044b26 Mark peer dependencies as optional (#3066) 2019-02-24 08:43:42 +00:00
SpaceEEC
45a17e7ebd fix(Emoji): reject explicit error when MANAGE_EMOJI permissions are missing (#3063) 2019-02-12 10:16:23 +01:00
SpaceEEC
49e8bd9edd feat(RichEmbed): add timestamp support for setTimestamp (#3061) 2019-02-12 10:15:37 +01:00
SpaceEEC
1618829cc6 fix(Util): splitMessage throws an error if a chunk is too large (#3060) 2019-02-12 10:14:49 +01:00
SpaceEEC
a0ff72b556 fix(GuildMember): add explicit channel resolve error to member edit (#3059) 2019-02-12 10:13:37 +01:00
SpaceEEC
7bc2e231cf feat(Guild): add position to createChannel's implementation (#3058) 2019-02-12 10:12:25 +01:00
SpaceEEC
890b1be714 feat(RichEmbed): add length getter (#3057) 2019-02-12 10:11:44 +01:00
SpaceEEC
a2a0c05102 feat(Presence): add clientStatus (#3056) 2019-02-12 10:10:33 +01:00
SpaceEEC
5272cec6c8 feat(Util): add WHITE as color resolvable (#3062) 2019-02-09 23:52:38 +00:00
Kyra
359ddaf1df feat(Constants): add error code 50020 (#2953)
* feat(Constants): Add error code 50020

Which is throw when using the vanity-url endpoint: https://github.com/discordapp/discord-api-docs/pull/748/

* docs: Document the new code
2019-02-06 22:09:00 +01:00
Lucas Kellar
8b602ebed4 typings(SnowflakeUtil): add optional "timestamp" parameter to generate (#2998) 2019-02-06 19:14:52 +01:00
SpaceEEC
73aaab5106 fix(Guild): ignore voice states referencing an invalid channel
This was causing an uncaught exception on startup (or whenever receiving such a payload) which is crashing the process.
2019-01-17 11:34:10 +01:00
izexi
3b7b282b69 docs(Client): add missing example tag and closing parenthesis (#3024) 2019-01-17 09:58:04 +01:00
Darqam
5ed2a95856 docs(Client): add missing parenthesis in fetchInvite example (#3023)
This is already fixed in master, resolves #3022
2019-01-16 19:17:19 +01:00
SpaceEEC
46fd7b093c docs(Guild): use AuditLogAction for fetchAuditLogs' type option 2019-01-10 13:05:33 +01:00
SpaceEEC
17ca83663f typings(TextBasedChannel): fix create(Message)Collector's options type 2019-01-06 17:51:27 +01:00
SpaceEEC
9d83516918 typings(Guild): fix typos in method names
Fixes #3009
2018-12-31 18:21:22 +01:00
SpaceEEC
89a9b93cdc docs(Webhook): add mising '@name' to Webhook#token's docstring 2018-12-30 12:56:33 +01:00
Drahcirius
7186c91063 fix(TextBasedChannel): added missing lastMessage functionality in textchannels (#2999) 2018-12-23 22:16:50 -06:00
izexi
2aa8e1d9c1 docs:(TextChannel): add documentation for messages and lastMessage (#2986)
* [docs] add missing docs for <TextChannel>.messages

* add missing doc for <TextChannel>.lastMessage
2018-12-22 08:25:24 +01:00
SpaceEEC
351f0a32bf typings(RichEmbed): add MessageEmbed as valid data in constructor
See #2970
2018-11-26 18:08:31 +01:00
SpaceEEC
691aaef07e backport(Guild): support for rateLimitPerUser when creating a channel
PR: #2878
Commit: 8ec3b5134d
2018-11-17 17:24:48 +01:00
SpaceEEC
6aa7792097 docs(GuildChannel): add rateLimitPerUser to ChannelData typdef 2018-11-17 17:19:04 +01:00
Souji
980d71f307 fix:(GuilChannel): clone method not taking overwrites into account (#2932) 2018-11-06 20:01:48 +01:00
Amish Shah
b3f459091f Fix #2928 (member not being removed from voice channel after leaving guild) 2018-11-04 12:26:06 +00:00
Isabella
950abd4ac3 fix: revert #2768 (#2848)
* fix: revert #2768

* fix merge
2018-10-14 11:44:02 -05:00