Commit Graph

1462 Commits

Author SHA1 Message Date
Rodry
e0efcc6ab0 docs(*): add links to Discord's API objects & data (#5862) 2021-06-24 09:55:44 +01:00
Pronin Egor
6d3d00b445 fix(InteractionResponses): set replied status on editReply (#5899)
Co-authored-by: Noel <buechler.noel@outlook.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
2021-06-24 00:07:33 +01:00
monbrey
bd9f56af9a feat(Interactions): improve error handling for ephemeral responses (#5892)
Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com>
2021-06-24 00:03:52 +01:00
monbrey
2d7c12b0e9 fix(Message): flags not being parsed on some edits (#5886)
* fix(Message): flags not being parsed on some edits

* refactor(MessageManager): access cache once
2021-06-24 00:02:30 +01:00
Shubham Parihar
6cebeae15e docs: move embeds field into BaseMessageOptions (#5902) 2021-06-22 15:25:18 +01:00
Brage
3d96a33bd0 docs(AnonymousGuild): add missing extends tag (#5896) 2021-06-22 10:24:04 +01:00
ckohen
174b7a7f9c fix(Guild): don't patch before instance properties (#5885)
Co-authored-by: BannerBomb <BannerBomb55@gmail.com>
2021-06-20 15:47:30 +01:00
Jacob Morrison
1f8f3ab0f8 fix(presenceUpdate): fire when only state/details change on an activity (#5846) 2021-06-19 17:27:54 +01:00
Souji
44e2ee7b20 feat(WelcomeScreen): welcome screens (#5490)
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
Co-authored-by: izexi <43889168+izexi@users.noreply.github.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-06-19 16:44:45 +01:00
Brage
807ea2d3c1 docs(VoiceState): channel can be null (#5872)
The docs does not show that VoiceState#channel can be null
![Docs Image](https://i.imgur.com/fLqRBqm.png)
This should fix the issue
2021-06-18 16:37:57 +01:00
Tyler Resch
e3ed74a5e8 docs(ReplyMessageOptions,MessageEditOptions): replaced embed with embeds (#5860)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-06-18 14:42:53 +01:00
Shubham Parihar
2d12db000f feat: stage instance invite (#5856)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-06-18 00:01:18 +01:00
Shubham Parihar
a3cbcca13d feat(Guild): add enum for premium_tier (#5868) 2021-06-16 15:33:01 +01:00
Shubham Parihar
f7eeccba4b feat(*): use enums for consistency and speed (#5843)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-06-15 12:33:31 +01:00
Rodry
671436cbb8 fix(Message): editedTimestamp defaulting to 0 (#5847) 2021-06-15 12:02:56 +01:00
monbrey
9dda9b742f refactor(awaitMessageComponentInteraction): use options object for lib consistency (#5852) 2021-06-15 12:02:48 +01:00
Jiralite
96a4e7b86e docs: Consistent application name usage (#5853) 2021-06-15 12:02:39 +01:00
ThumusLive
038ee99604 feat(Widget): wrapper for widget.json (#5619)
Co-authored-by: monbrey <rsm999@uowmail.edu.au>
Co-authored-by: BannerBomb <BannerBomb55@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
2021-06-15 12:02:18 +01:00
Tyler Resch
a6dae75d3a docs(TextBasedChannel#send): update embeds example (#5857) 2021-06-15 11:59:53 +01:00
Shubham Parihar
918921e821 feat: stage instances (#5749)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-06-14 12:57:37 +01:00
muchnameless
a1f94f670e fix(ApplicationCommand): default option.required fix (#5848) 2021-06-14 08:10:05 +01:00
Shubham Parihar
1ac9a2eb5b refactor(*): make typedefs for all options params (#5785)
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-06-13 19:32:54 +01:00
monbrey
01a1fd615b fix(Guild): setChannelPositions null parenting (#5841) 2021-06-13 19:31:06 +01:00
Rodry
77c1f15c9f fix(ApplicationCommand): default option.required to false (#5838) 2021-06-13 19:31:00 +01:00
Jan
4dbcaf76c3 refactor(GuildPreviewEmoji): make roles an array (#5720) 2021-06-13 19:30:20 +01:00
Jan
02693bc02f refactor(APIMessage): remove unused declarations (#5836) 2021-06-12 12:11:57 +01:00
monbrey
9376ee42f4 docs(ButtonInteraction): fix typo (#5835) 2021-06-12 12:11:48 +01:00
Matt (IPv4) Cowley
c5859337b6 fix(GuildChannel): don't force parentID/permissionOverwrites to empty on create (#5823) 2021-06-12 12:10:01 +01:00
Adrian Castro
99ff715137 feat(*): document and support embeds field in message create endpoint (#5792)
Co-authored-by: ckohen <chaikohen@gmail.com>
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
2021-06-11 23:45:17 +01:00
Matt (IPv4) Cowley
6df36232a0 fix(GuildChannel): improve empty overwrite handling for permissionsLocked (#5821) 2021-06-11 23:45:05 +01:00
ckohen
24e5868818 fix(ApplicationCommands): allow managing commands for uncached guilds (#5729)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-06-11 23:26:24 +01:00
Jan
e990c35476 fix(ClientApplication): freeze flags (#5811) 2021-06-11 23:22:10 +01:00
Shubham Parihar
a5a6e22316 fix(*): typedefs and typings for image & webhook options (#5805) 2021-06-11 23:22:01 +01:00
SpaceEEC
19d0405aa5 refactor(GuildChannel): use Permissions.defaultBit over 0n (#5822) 2021-06-11 23:21:51 +01:00
Antonio Román
fdef940127 refactor: remove all voice code (#5818)
* refactor: remove all voice code

* refactor: remove even more remnants
2021-06-11 23:21:34 +01:00
Almeida
93b0a4e005 fix(TextBasedChannel): allow passing an APIMessage with split (#5815)
* fix(TextBasedChannel): allow passing an APIMessage with split

* fix(Webhook): allow passing an APIMessage with slit
2021-06-11 22:54:29 +01:00
Jan
e3e466d3e5 refactor(MessageEmbed): remove files (#5813)
* refactor(MessageEmbed): remove files

* fix: test
2021-06-11 21:36:31 +01:00
Juruel Keanu Lorenzo
a7ebb2145c fix(PermissionOverwrites): optional allow/deny OverwriteData (#5810) 2021-06-11 21:31:11 +01:00
Mark Fisher
41673b7382 fix(GuildChannel): clone errors when options.name isn't provided (#5804) 2021-06-11 11:04:45 +01:00
Tyler Resch
f5f3f77286 docs(MessageEmbed): deprecation advisory for type (#5774)
Co-authored-by: DTrombett <73136330+DTrombett@users.noreply.github.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
2021-06-10 19:35:35 +01:00
SpaceEEC
097c7b9cdd fix: don't patch missing properties from partial payloads (#5796)
* fix: don't patch missing properties from partial payloads

* fix(GuildChannel): initialize permissionOverwrites in the constructor

* refactor(GuildChannel): remove redundant if
2021-06-10 17:42:45 +01:00
Shubham Parihar
ffabec3a5e feat(Guild): add enum for mfa_level (#5797) 2021-06-10 17:19:08 +01:00
SpaceEEC
2f5424bdac fix(GuildChannel): spread clone options to avoid infinite recursion (#5800) 2021-06-10 17:07:12 +01:00
SpaceEEC
eb98e33a85 fix(Webhook): throw an error if no token is available when it's required (#5798) 2021-06-10 17:05:45 +01:00
SpaceEEC
ea0e06f980 fix(ClientPresence): produce valid activities for set presences (#5799) 2021-06-10 17:05:27 +01:00
Souji
a1f763ee75 refactor(Guild): remove region from guild and manager methods (#5766) 2021-06-10 15:09:57 +01:00
u9g
fbcbb29884 feat(Util): allow array for StringOptions' char (#5566)
Co-authored-by: Voltrex <62040526+VoltrexMaster@users.noreply.github.com>
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
Co-authored-by: Papaia <43409674+papaia@users.noreply.github.com>
Co-authored-by: Noel <icrawltogo@gmail.com>
2021-06-10 10:24:45 +01:00
Shubham Parihar
eb0291d9a5 feat(GuildAuditLogs): make #target a channel for channel related logs (#5781)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-06-10 10:24:36 +01:00
ckohen
35781597d0 fix(ApiMessage): only pass objects as options directly (#5793)
* fix(ApiMessage): only pass objects as options directly

* refactor: inline if with ternary
2021-06-10 08:41:01 +01:00
Austrian
35c2225f50 docs(Messages): fix examples in messages after changes in #5758 (#5791) 2021-06-09 19:33:07 +01:00