Isabella
183ba25faf
fix: emit voiceStateUpdate on guildMemberRemove ( #2892 )
...
* fix: emit voiceStateUpdate on guildMemberRemove
* apparently i am blind
* typings
2018-10-14 12:44:14 -05:00
Isabella
950abd4ac3
fix: revert #2768 ( #2848 )
...
* fix: revert #2768
* fix merge
2018-10-14 11:44:02 -05:00
Lewdcario
9cf50d05f2
fix(typings): ReactionUserStore#fetch returns a Collection
...
fixes #2895
2018-10-13 20:09:19 -05:00
SpaceEEC
73b9b0e62b
fix(Shard): use DISCORD_TOKEN instead of CLIENT_TOKEN, see #2843
2018-10-13 15:20:56 +02:00
Amish Shah
2e7094f9ea
voice: fix disconnect without receiver edge case
2018-10-11 23:02:59 +01:00
SpaceEEC
4491b7b42a
typings(MessageEmbed): add spliceField and static checkField methods
2018-10-10 11:30:26 +02:00
Souji
fd25d19c9c
docs(ClientUser): fix example for setActivity method ( #2880 )
2018-10-10 10:30:23 +02:00
Souji
78c4be52c6
docs(Collection): clarify example for tap method ( #2881 )
...
* docs: clarify example for Collection#tap
* docs: wording improvement
2018-10-10 10:29:53 +02:00
SpaceEEC
6e5f088e44
refactor: consistently use permissionOverwrites over overwrites ( #2886 )
2018-10-10 10:25:00 +02:00
SpaceEEC
7ea88adeca
backport(Guild): support for createChannel with options object ( #2888 )
2018-10-10 10:05:32 +02:00
SpaceEEC
71c04a303a
feat(Emoji): move createdAt and createdTimestamp getters from GuildEmoji ( #2872 )
2018-10-10 10:01:23 +02:00
SpaceEEC
ea3e575546
backport(TextBasedChannel): add lastPinTimestamp and lastPinAt ( #2870 )
...
And clarify Client#channelPinsUpdate's 'time' parameter.
2018-10-10 10:01:04 +02:00
Will Nelson
1ee417cd65
featt(ClientUser): allow options as first parameter to setActivity ( #2890 )
2018-10-10 09:59:16 +02:00
Dim
8ec3b5134d
feat(GuildChannelStore): support for create with rateLimitPerUser ( #2878 )
...
* change GuildChannelStore#create
* document rateLimitPerUser
* update typings
2018-10-10 09:58:31 +02:00
bdistin
8feb874586
feat(MessageEmbed): add spliceField method ( #2857 )
...
* Add spliceField and refactor to prevent code dupe
* String() was for a falsy check, fixed
* requested: remove embed field count checks
2018-10-10 09:57:56 +02:00
Isabella
1fe36087d4
feat(MessageEmbed): allow setTimestamp to take a timestamp ( #2875 )
...
* feat: allow MessageEmbed#setTimestamp to take a timestamp
* fix the dumb i did
2018-10-10 09:57:13 +02:00
SpaceEEC
27d2ce7baf
typings(Collection): each return Collection<K, V>, not void
2018-10-05 11:37:49 +02:00
Amish Shah
00a62a93e4
voice: catch errors before connection is ready
2018-10-04 20:57:52 +01:00
SpaceEEC
fcf4745a43
typings: fix lint script and linter errors
2018-10-04 19:29:12 +02:00
SpaceEEC
b92f8d9c06
docs(Game): document possible values for type property
...
See #2865
2018-10-04 13:31:26 +02:00
SpaceEEC
6b810b2331
fix(ClientPresence): use possibly extended constructor from structures
2018-10-04 12:36:25 +02:00
SpaceEEC
1428967238
docs(Integration): document Integration class
2018-10-04 11:01:21 +02:00
SpaceEEC
c6201ee41b
backport(Guild): add fetchVanityCode ( #2871 )
2018-10-03 17:31:20 -05:00
Isabella
1e85887229
backport: rateLimitPerUser ( #2874 )
2018-10-03 17:21:26 -05:00
SpaceEEC
e0f522a745
backport(ClientOptions): add retryLimit ( #2869 )
2018-10-03 17:20:53 -05:00
Daniel
62e7e26310
Add white to colours ( #2853 )
...
* add white to colorresolvable typedef
* add colour white
2018-10-01 14:02:50 +02:00
bdistin
96a0655609
refactor(WebhookClient): make token property non-enumerable ( #2861 )
...
* make WebhookClient#token non-enumerable
parity with Client to add the barest protection against accidental exposure
* requested change
2018-10-01 12:43:08 +02:00
bdistin
d8c97be142
docs: fix typos ( #2868 )
2018-10-01 12:38:36 +02:00
SpaceEEC
21999fa4a0
fix(typings): fix compilation with 'strict' enabled ( #2845 )
2018-09-30 11:30:07 +02:00
Kyra
d4c0bb2a0d
feat(TextChannel): RateLimitPerUser ( #2811 )
...
* feat: Add TextChannel#rateLimitPerUser
Rename parameter in TextChannel#setRateLimitPerUser
feat: Add `rateLimitPerUser` param to ChannelData
fix: eslint
* docs: Updated typings
* fix: Requested changes
* fix: rateLimitPerUser being undefined when 0
When `rate_limit_per_user` is 0, the gateway does not send it (but REST does). When this is set to a non-zero number, this property starts to exist. Otherwise this will be `0`. Adding `|| 0` should do the trick changing `undefined` to `0`.
* fix: eslint
2018-09-29 16:02:49 +02:00
Kyra
60ad9053a3
typings: add HTTPError class definition ( #2852 )
...
Class was introduced with #2694
* typings: Add HTTPError class definition
* typings: Sort HTTPError's members by name
2018-09-23 22:07:19 +02:00
Shayne Hartford
32b405a5be
Change default token ( #2843 )
...
* Change default token
Default `token` to `process.env.CLIENT_TOKEN` like client does.
* 2/2
* 1/2
2018-09-23 21:36:28 +02:00
Andrew Lehman
3298ea1869
docs: correct default value for SplitOptions.maxLength in Util#splitMessage ( #2847 )
2018-09-23 21:35:56 +02:00
SpaceEEC
0ab69c5ad4
fix(Webhook): APIMessage require should be a const
2018-09-23 17:04:22 +02:00
SpaceEEC
c0a9b08e73
fix(Webhook): APIMessage is not circular, fixes WebhookClients
2018-09-23 17:02:35 +02:00
SpaceEEC
3f44320bbe
docs(MessageAttachment): redocument name property
2018-09-22 11:45:03 +02:00
Lewdcario
53420fa4e7
fix: Webhook#send not resolving content
2018-09-21 23:02:31 -05:00
bdistin
3d8207a3db
refactor: comprehensive permissionOverwrites refactor ( #2818 )
...
* wip: comprehensive permissionOverwrites refactor
* PermissionOverwrites.resolve should Promise.reject()
where a promise is the expected return value
* On second thought, async rewrite to automatically reject on throw
* Fix some docs
* Fix a bug
* fix 2 more bugs
* typings: Updated for latest commit
* typings: Add missing method in GuildChannel
* typings: Add missing `| null` in PermissionOverwriteOption type
* Suggested changes
2018-09-21 12:21:51 +02:00
bdistin
6d184257b3
refactor: remove duplicate send checks ( #2790 )
...
* re-direct pr code to master
* fix Webhook send docs
* requested changes
* typings: Updated to latest commit
* requested change
* requested change
2018-09-21 10:59:58 +02:00
Crawl
8a6d029c00
build(dev-deps): update to use terser instead of uglifyjs
2018-09-19 01:20:07 +02:00
SpaceEEC
d2da771e0f
docs(Client): fix syntax error in fetchInvite example
2018-09-18 11:04:54 +02:00
SpaceEEC
2cc0a31d5c
typings(Message): member property is a readonly getter
2018-09-15 19:49:34 +02:00
SpaceEEC
9de3e098da
docs(User): clarify what User#tag represents
...
Closes #2828
2018-09-10 18:11:09 +02:00
SpaceEEC
1d77d1a9b8
fix(typings): remove UserConnection, fix various constructors
...
Closes #2825
2018-09-10 13:41:33 +02:00
Ash
9c2924a1b4
docs(ChannelPinsUpdate): clarify time param ( #2823 )
2018-09-05 14:33:44 +02:00
Ash
e96a60361a
feat(TextBasedChannel): add lastPinTimestamp and lastPinAt ( #2813 )
...
* add lastPinTimestamp
* typings
* use or instead of ternary
2018-09-03 09:11:52 +02:00
lipgloss
b068abb5de
typings: add declaration of Message#url and MessageAttachment#size ( #2821 )
...
* add url to message typings
* also its readonly
* message attachment sizing typing
2018-09-03 08:53:20 +02:00
SpaceEEC
75745fe2ba
typings(GuildChannel): permissionsFor's return value is nullable
2018-09-02 16:03:03 +02:00
SpaceEEC
ead99a53b7
fix(HTTPError): the path property should actually be the path
2018-09-02 14:57:36 +02:00
SpaceEEC
6b9dd13d43
docs/typings(GuildChannel): permissionsfor returns a nullable readonly Permissions instance
2018-09-02 13:23:39 +02:00