Commit graph

93 commits

Author SHA1 Message Date
SpaceEEC
da39e858a1
chore(Release): version 11.6.4 2020-04-05 19:09:15 +02:00
SpaceEEC
08865a98cd
chore(release): publish 2020-03-08 19:38:05 +01:00
SpaceEEC
d72172744e
v11.6.1 2020-02-29 19:13:53 +01:00
SpaceEEC
b3931eaebb
v11.6.0 2020-02-29 15:28:37 +01:00
SpaceEEC
97457e1de2
feat(RichEmbed): add toJSON returning an api-compatible object
This backports:
PR: https://github.com/discordjs/discord.js/pull/3813
Commit: 4ec01ddef5
2020-02-28 18:29:41 +01:00
Souji
6eaf63fb7c
feat(RichEmbed): backport spliceFields and normalizeField (#3762)
* backport: RichEmbed#checkField, Util#resolveString

* backport: RichEmbed#spliceFields

* fix: typo

* chore: use util.resolveString everywhere

* chore: rename EmbedFIeld to EmbedFieldData

* consistency with v12

* chore: rename checkField to normalizeField

* consistency with v12

* fix: EmbedField instead of EmbedFieldData

* fix(typings): EmbedFIeld#inline is guaranteed

* fix(docs): add JSDocs typedef for EmbedFieldData

* fix(typings): EmbedFIeldData#name/#value

* should be StringResolvable

* refactor(RichEmbed): do not duplicate field prop checking

* docs(RichEmbed): document default for inline

* fix(RichEmbed): pass correct parameters to normalizeField

* typings(RichEmbed): add missing spaces

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2020-02-28 18:16:19 +01:00
Ryan Munro
cf646b5394
fix(typings): MessageOptions#split (#3834) 2020-02-26 09:46:19 +01:00
Sugden
b0aed050e3 feat(Guild): add rulesChannel and publicUpdatesChannel (#3810)
* add rulesChannel* & publicUpdatesChannel*

* update typings
2020-02-22 13:14:11 +01:00
SpaceEEC
7e9c995566
feat(Message*): add missing fields, add support for flag editing (#3795) 2020-02-22 12:38:43 +01:00
SpaceEEC
330c410796
feat(Guild): add support for system channel flags (#3793) 2020-02-22 12:36:59 +01:00
SpaceEEC
ab866d6b2e
feat(GuildChannel): add support for clone options, deprecate old signature (#3792) 2020-02-22 12:35:22 +01:00
SpaceEEC
46e8bc44fc
feat(BitField): add BitField base class (#3759)
* feat(BitField): add BitField base class

* fix(Permissions): properly deprecate the getters/setters
2020-02-12 22:23:48 +01:00
Ryan Munro
dbdb49ee1c
feat(GuildAuditLogs): handle new event types (#3760)
* Define new AuditLogActions

* Backport constructor rewrite

* Typings

* fix(GuildAuditLogEntry): switch on correct property, coerce to numbers, simplify extra for deleted entities

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2020-02-12 18:42:57 +01:00
SpaceEEC
c955fd00c7
feat(Integration): add guild integrations (#3756) 2020-02-02 11:11:31 +01:00
SpaceEEC
a12e1e87ee
typings(Constants): add CUSTOM_STATUS to ActivityTypes 2020-02-01 21:14:02 +01:00
SpaceEEC
17b8b23b80
feat(Presence/Game): multiple activities and custom status (#3747)
* feat(Presence): add activities

* feat(Game): add created* and emoji
2020-02-01 18:27:20 +01:00
SpaceEEC
ccd60438df
feat(Collector): add idle option (#3746) 2020-02-01 18:23:56 +01:00
SpaceEEC
fbcd363ec9
fix(Voice*): fix speaking event and voice receive (#3749)
* fix(Voice*): synthesize speaking event from UDP packets

* fix(VoiceReceiver): skip over undocumented Discord byte

See #3555

* fix(VoiceConnection): play frame silence before emitting ready

* typings: account for changes in private api
2020-01-31 22:37:11 +01:00
Ryan Munro
ab7f9e80b4 feat(MessageReaction): backport removeAll and MessageReactionRemoveEmoji event (#3741)
* Add new action and websocket handler

* Add REST method for removing reaction emoji

* Update Message#_removeReaction to handle removing whole emoji

* Add MessageReaction#removeAll and update typings

* Apply uncached user fix
2020-01-25 15:36:35 +01:00
SpaceEEC
30adb378fc
feat(Webhook): backport missing properties (#3710)
* feat(Webhook): add avatarURL getter

This backports: https://github.com/discordjs/discord.js/pull/3625

* feat(Webhook): add type, createAt, and createdTimestamp

This backports: https://github.com/discordjs/discord.js/pull/3585

* feat(Webhook): add url getter

This backports: https://github.com/discordjs/discord.js/pull/3178

* docs(Webhook): add missing type and readonly tags
2020-01-24 16:52:52 +01:00
SpaceEEC
88b675d38a
feat(MessageReaction): backport animated, client, created*, and url (#3711) 2020-01-24 16:50:16 +01:00
SpaceEEC
4ca18647ba
feat(MessageAttachment): add spoiler getter (#3713) 2020-01-24 16:45:52 +01:00
Ryan Munro
40afbc1d7e feat(Client): backport INVITE_CREATE and INVITE_DELETE events (#3728)
* Backport INVITE_CREATE and INVITE_DELETE

* Register events to Websocket

* Dont create an Invite if the guild is null

* Null check channel too
2020-01-24 16:34:59 +01:00
Ryan Munro
17237c70c8 typings(TextChannel): topic can be null (#3687)
* Mark topic as nullable for TextChannel

* Backport separate NewsChannel typings

* Ensure NewsChannel#rateLimitPerUser is undefined

* Revert rateLimitPerUser, considered breaking

* Add rateLimitPerUser back to typings

* Linting

* Revert NewsChannel extends TextBasedChannel
2020-01-24 16:33:19 +01:00
SpaceEEC
01826aeefe
feat(Guild): add setBanner method and banner to edit (#3708) 2020-01-19 13:07:09 +01:00
SpaceEEC
fbe9bc499b
feat(Webhook): add ability to change channel and specify reason to edit (#3587)
* feat(Webhook): add ability to change channel and specify reason to edit

* fix(RESTMethods): update channelID of the webhook too
2020-01-05 18:34:00 +01:00
SpaceEEC
367c80070f
feat(Permissions): add any method (#3571)
* feat(Permissions): add any method

* typings: add Permissions#any

* fix(Permissions): resolve doesn't take a checkAdmin parameter

Co-Authored-By: bdistin <bdistin@gmail.com>

* docs(Permissions): remove trailing space, add returns annotation

Co-authored-by: bdistin <bdistin@gmail.com>
2020-01-05 18:24:08 +01:00
SpaceEEC
96037e107f
feat(GuildMember): add selfStream (#3522) 2019-10-27 10:27:43 +01:00
Souji
7011c512fb fix: document ChannelData#reason (#3549)
* fix: document ChannelData#reason

* update respective typings
* closes #3548

* update: add note creation only

Co-Authored-By: SpaceEEC <spaceeec@yahoo.com>
2019-10-22 21:17:56 +02:00
Souji
2610bf57ae feat(GuildChannel): backport permissionsLocked getter (#3507)
* backport(GuildChannel): GuildChannel#permissionsLocked

* typings: GuildChannel#permissionsLocked

* fix(typings): mark permissionsLocked getter as readonly
2019-10-04 16:43:12 +02:00
SpaceEEC
a8e365743c
typings: optional reason for setNSFW and add deleted properties (#3505)
* typings: optional reason for setNSFW and add deleted properties

* typings(Guild): setDefaultMessageNotifications' reason is also optional
2019-10-04 11:20:56 +02:00
izexi
94ce19dd1a typings: mark GuildMember#nickname as nullable (#3517) 2019-10-04 11:19:55 +02:00
Souji
2a78b00454 fix(typings): GuildChannel#parent and #parentID are nullable (#3509) 2019-10-02 14:26:53 +02:00
Vlad Frangu
748555036d typings: Add missing rateLimitPerUser property (#3480) 2019-09-22 17:07:44 +02:00
Ryan Munro
dcee09c308 backport(Permissions): backport STREAM permission from #3309 (#3447)
* Backport the STREAM permission

* Update typings and default
2019-08-28 11:09:45 +02:00
SpaceEEC
0cd7556934
feat(Teams): backport support for teams (#3357)
* feat(Teams): backport support for teams

PR #3350
Commit: a22aabf6a8

* fix(TeamMember): fix name of client property

* refactor(OAuth2Application): make team nullable instead of optional

* typings(OAuth2Application): make team nullable instable of optional

* docs(OAuth2Application): deprecate and add an info to team property
2019-07-11 13:10:54 +02:00
SpaceEEC
c355236f7f
feat(Emoji): backport delete method (#3343)
This backports #1877 (c93c4ad21f) in a semver-minor manner.
2019-06-16 10:07:32 +02:00
SpaceEEC
b8924369ea
feat(Guild): add support for premium/boosting (#3332)
Backports:
PR: #3316
Commit: c87758086b
2019-06-13 19:03:36 +02:00
SpaceEEC
e6a378b361
feat(Guild): backport misc properties and setRolePositions (#3337)
* feat(Guild): backport misc properties and setRolePositions

PRs:
* #3168
* #3317

* typings
2019-06-13 18:33:07 +02:00
Schuyler Cebulskie
e82633fb00 Bump version to 11.5.0 2019-05-11 19:05:10 -04:00
Schuyler Cebulskie
8fba786765 Update typings for news/store channels 2019-05-11 18:56:14 -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
12e041bc2b
typings(GuildChannel): add manageable getter 2019-04-17 21:39:46 +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
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
SpaceEEC
49e8bd9edd
feat(RichEmbed): add timestamp support for setTimestamp (#3061) 2019-02-12 10:15:37 +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