Kyra
c432591113
feat(RoleStore, ChannelStore): fetch() method ( #3071 )
...
* feat({Role,Channel}Store): fetch method
* docs: Add usage examples to the new methods
* misc: Add note of why we are fetching all roles even for a single one
2019-02-09 15:07:31 +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
Kyra
ae7269088b
typings(ShardClientUtil): fix id property type ( #3054 )
...
Ref: d98d464d74/src/sharding/ShardClientUtil.js (L50)
2019-02-06 18:15:05 +01:00
Amish Shah
f826c9c75e
voice: workaround for receiving audio
...
(#2929 and discordapp/discord-api-docs#808 )
2019-02-05 10:26:16 +00:00
Kyra
d98d464d74
typings(GuildCreateChannelOptions): added missing properties ( #3052 )
...
* typings(GuildCreateChannelOptions): Added missing properties
* typings: Added `GuildChannelCloneOptions`
2019-02-04 17:57:13 +01:00
Kyra
dd8ba00af4
misc(index): export HTTPError class ( #3051 )
2019-02-04 16:44:21 +01:00
Isabella
75e264da57
feat: Presence#clientStatus ( #2997 )
...
* feat: Presence#clientStatus
* fix Presence#equals check
* fix typings
* vlad changes
* presence consistency docs
* fix docs
* fix big docs fail
2019-02-02 20:29:47 +01:00
Rattmann (fallen)
1db78994dd
feat: MessageEmbed#length ( #3003 )
...
* add MessageEmbed#length
* update typings (+MessageEmbed#length)
* eslint: L181 (max line length), L183 (missing semi)
* eslint: L181 (trailing space)
2019-02-02 20:29:10 +01:00
SpaceEEC
db3ae0159b
docs(Structures): note about extending prior to instantiating client ( #2884 )
2019-02-02 20:28:24 +01:00
Marcel Menzel
f2ed93c08a
fix(WebSocketShard): report correct resumed event count ( #3019 )
...
This PR attempts to fix the reported resumed event count in the debug output (where it is always displayed only as 1 event replayed) and in the emitted `resumed` event, where it passed the current sequence instead of passing the actual replayed event count (which was an utopic high number for smaller bots on resume).
2019-02-02 11:28:45 +01:00
Kyra
2dcdc798ac
typings: add missing ImageSize numbers ( #3045 )
...
To match the JS typedef: https://discord.js.org/#/docs/main/master/typedef/ImageURLOptions
2019-02-02 10:42:13 +01:00
Anthony Collier
3dff5058f0
docs(Examples): fix usage of removed overload of Collection#find ( #3027 )
2019-01-21 17:22:24 +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
Isabella
8230255c68
fix(ShardClientUtil#id): erroneously reporting as an array
2019-01-15 01:45:29 -06:00
SpaceEEC
28db527370
docs(Guild): use 'updated' variable in example for setRegion
2019-01-10 16:54:02 +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
SpaceEEC
840d22f892
docs(Webhook): add mising '@name' to Webhook#token's docstring
2018-12-30 12:52:33 +01:00
Amish Shah
0bde9ca2c5
voice: set seek parameter before input ( #2993 )
2018-12-27 18:05:54 +00:00
Kyra
8a76cc5c72
typings(TextBasedChannel): add Snowflake[] overload to bulkDelete ( #3001 )
...
* typings: Add `string[]` overload to bulkDelete
* misc: Requested changes
2018-12-25 22:00:46 +01:00
Drahcirius
7186c91063
fix(TextBasedChannel): added missing lastMessage functionality in textchannels ( #2999 )
2018-12-23 22:16:50 -06:00
Lucas Kellar
8286d1a0fc
typings(SnowflakeUtil): add optional "timestamp" parameter to generate ( #2998 )
2018-12-23 23:16:28 +01:00
SpaceEEC
21ec03140f
feat(GuildChannelStore): add support for create to accept a position ( #2965 )
2018-12-22 08:50:33 +01:00
Will Nelson
5cbdf38028
fix(WebSocketShard): add websocket send error handling ( #2981 )
...
* websocket send error handling
* fix: emit only when error is present
* refactor: use an if instead
2018-12-22 08:49:56 +01: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
August
b5d5c699e6
fix: guildBanRemove event name ( #2983 )
...
- "Events.GUILD_BAN_REMOVEGUILD_BAN_REMOVE" -> "Events.GUILD_BAN_REMOVE"
2018-12-09 09:30:46 +01:00
Gus Caplan
42505b78c1
chore: add strict mode ( #2974 )
2018-12-03 15:19:10 -06:00
SpaceEEC
ecaec29380
fix(Util): throw an explicit error if a chunk exceeds the max length ( #2936 )
...
* fix(Util): throw an explicit error if a chunk exceeds the max length
* refactor(Util): consolidate both errors in splitMessage into one
* revert(Messages): do not unnecessarily change the error code
* revert(Messages): do not remove the word 'the'
2018-11-27 21:42:28 +01:00
Darqam
23a16c3a73
fix(GuildChannel): add explicit channel resolve error to member edit ( #2958 )
...
* Add explicit error to setting invalid voice channel
* restrict to guild
Co-Authored-By: Darqam <anhim2@gmail.com >
* add a more explicit error and channel type check
* bad tab
2018-11-27 21:41:34 +01:00
SpaceEEC
fd21bbb7bf
docs: move event docstrings to the emitting line of code
2018-11-27 21:28:36 +01:00
Skillz4Killz
1d1b3f25e1
docs: add documentation for Client#channelCreate ( #2967 )
2018-11-27 21:12:25 +01:00
SpaceEEC
351f0a32bf
typings(RichEmbed): add MessageEmbed as valid data in constructor
...
See #2970
2018-11-26 18:08:31 +01:00
SpaceEEC
a8b47a7a6c
feat(GuildChannelStore): add support for create to accept a position
2018-11-23 19:46:11 +01:00
Frangu Vlad
9085138f0d
fix: Sharding Issues & Cleanup ( #2952 )
...
* fix: Sharding causing constant heartbeat / identify spam
* misc: Remove wait param in connect
* misc: Wait 2.5 seconds before sending identify again if session is resumable
* misc: Remove useless destroy call
* nit: Capitalization
* fix: Identify on HELLO not connectionOpen
* misc: Add different intervals for identify after invalid session
- 2500 if we couldn't resume in time
- 5000 if we didn't have a session ID (per the docs on identify, that a client can only connect every 5 seconds)
- Otherwise, just identify again
* misc: Only clear heartbeat if shard is fully dead
Reconnect clears it otherwise
* fix: Accessing .length on a Collection
2018-11-21 13:42:37 -06:00
Crawl
377ecd73ea
docs(GuildChannel): fix doc string for clone method
2018-11-20 16:42:27 +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
SpaceEEC
d92ee2ff99
feat(GuildChannel): allow to set all options when cloning ( #2937 )
2018-11-17 15:43:04 +01:00
Charalampos Fanoulis
81ff5075e4
chore: remove user account checkbox from bug report template
2018-11-17 15:41:12 +01:00
Yukine
e793338d74
fix: ShardClientUtil#count and ShardClientUtil#id typedef ( #2956 )
2018-11-16 22:46:02 -06:00
Kyra
54aff3191e
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
2018-11-16 16:55:15 +01:00
Amish Shah
2d68e837e5
voice: fix receiver null on immediate voiceStateUpdate
2018-11-15 21:38:02 +00:00
Lewdcario
3418b5a1a2
docs: restore Client#error docs that went missing
2018-11-06 14:59:02 -06:00
Souji
980d71f307
fix:(GuilChannel): clone method not taking overwrites into account ( #2932 )
2018-11-06 20:01:48 +01:00
Lewdcario
6b886b0aba
typings: add Guild#shard and Guild#shardID
2018-11-06 11:23:17 -06:00