Commit Graph

867 Commits

Author SHA1 Message Date
Jiralite
9cf44d1c0e fix(GuildAuditLog): Remove Promises in constructor (#7089) 2021-12-14 19:03:21 +01:00
Jiralite
2ce244b502 types(MessageComponentInteraction): Ensure component is not null (#7099) 2021-12-12 22:06:24 +01:00
Jiralite
5a5c045534 types(GuildAuditLog): Strengthen types (#7090) 2021-12-10 10:07:57 +01:00
Antonio Román
25b8491235 refactor(Util): replace Util.delayFor with tp.setTimeout (#7082) 2021-12-08 21:31:01 +01:00
Suneet Tipirneni
1230bee9bc types(Message): guild should be non-null when message is in guild (#6933) 2021-12-08 10:49:17 +01:00
Antonio Román
b0937502d3 refactor: make Structure#deleted a getter to a WeakSet (#7074) 2021-12-08 10:47:54 +01:00
Shubham Parihar
f410536c51 feat: add API error code 20029 (#7078) 2021-12-08 10:40:49 +01:00
Antonio Román
5ec542d61f fix(StoreChannel): mark as deprecated (#7072) 2021-12-07 20:15:04 +01:00
Rodry
7f980e38b6 feat(ApplicationCommand): add setX methods for easier editing (#7063)
Co-authored-by: awned <65061212+ceilingfans@users.noreply.github.com>
2021-12-07 20:14:49 +01:00
Jiralite
f028aea333 feat: Add API error code 50055 (#7068) 2021-12-07 11:19:45 +01:00
Elliot
b6b4570482 types: improve audit logs' typings (#6647)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: Noel <buechler.noel@outlook.com>
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com>
2021-12-06 08:57:12 +01:00
Antonio Román
8b200c0fee feat(SnowflakeUtil): add timestampFrom (#7058) 2021-12-06 08:56:29 +01:00
Jiralite
01f8d1bed5 types(Interaction): Narrow memberPermissions (#7054) 2021-12-02 14:29:54 +01:00
Rodry
552d89fd4e feat(Guild): add premiumProgressbarEnabled (#6887)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2021-12-01 12:40:49 +01:00
Suneet Tipirneni
da86bd4fa3 fix: Interaction channel type should be GuildTextBasedChannels when in guild (#6998) 2021-12-01 12:33:11 +01:00
GrapeColor
4fe063f0d0 feat: add UserContextMenuInteraction and MessageContextMenuInteraction (#7003)
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: GrapeColor <grapecolor@users.noreply.github.com>
2021-12-01 12:31:37 +01:00
Suneet Tipirneni
a39d8c4d9d Revert "types(ApplicationCommandManager): Deprecate old *Data type …usages and allow camel cased dapi types to be used (#7052) 2021-12-01 12:28:22 +01:00
Antonio Román
e59fac3fe3 refactor(SnowflakeUtil): clean up utils and improve perf (#7036) 2021-11-29 11:20:18 +01:00
Suneet Tipirneni
2c91c488e8 types(ApplicationCommandManager): Deprecate old *Data type usages and allow camel cased dapi types to be used (#6959) 2021-11-29 11:17:57 +01:00
Jiralite
54f937d82c fix(MessageManager): Allow a string for edit() (#7033) 2021-11-25 12:42:11 +01:00
Suneet Tipirneni
9f3bf2927c CI: Use tsd for Testing Types (#6983)
Co-authored-by: Noel <buechler.noel@outlook.com>
2021-11-23 18:00:58 +01:00
Rodry
099536ee60 types(WebhookMessageOptions): disallow stickers (#7012) 2021-11-23 10:27:03 +01:00
dai
77aff08345 feat(Shard): add eval context (#7011)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-11-23 10:26:46 +01:00
Suneet Tipirneni
c1f2fe29ef types: remove unneeded collector types (#7008) 2021-11-23 10:26:18 +01:00
Suneet Tipirneni
48555cb8eb types: make event emitters use mapped event types (#7019) 2021-11-23 10:23:14 +01:00
Suneet Tipirneni
802a5ac228 chore: collector type cleanup (#6991) 2021-11-18 07:58:17 +01:00
Suneet Tipirneni
db09d79423 feat(ThreadChannel): add ThreadChannel#viewable (#6975) 2021-11-18 07:58:05 +01:00
Suneet Tipirneni
493e4f9350 feat(ThreadManager): add slowmode option on thread creation (#6989)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
2021-11-17 22:47:50 +01:00
Suneet Tipirneni
ecc61f3c74 types(ApplicationSubcommandData): allow autocomplete to be true (#6981) 2021-11-16 18:32:25 +01:00
Hackerboi 69
06cd16fe97 types: fix interaction typeguards (#6976) 2021-11-16 18:32:16 +01:00
Jiralite
73854ee852 refactor(MessageEmbed): Utilise an object approach for .setAuthor() (#6966)
Co-authored-by: Almeida <almeidx@pm.me>
2021-11-16 18:31:08 +01:00
Jake Ward
5e0a7d51fc feat(MessageAttachment): description (alt text) support (#6871)
Co-authored-by: D Trombett <maxtromb.dt@gmail.com>
2021-11-11 20:29:17 +01:00
Suneet Tipirneni
7630158f59 types: Strengthen autocomplete option types (#6950)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
2021-11-11 19:38:34 +01:00
Suneet Tipirneni
9f240ea0d1 types: fix cache type fallback types (#6961) 2021-11-11 19:37:53 +01:00
Vlad Frangu
8e881d2b96 types: unify ApplicationCommandManager#create overloads (#6970) 2021-11-11 19:08:28 +01:00
ckohen
c30a818ca9 feat(ApplicationCommand): add support for min and max values (#6855)
Co-authored-by: Noel <buechler.noel@outlook.com>
Co-authored-by: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com>
2021-11-11 19:07:21 +01:00
Almeida
49e3ce2133 feat(SystemChannelFlags): add new flag (#6870)
Co-authored-by: Shubham Parihar <shubhamparihar391@gmail.com>
2021-11-06 01:00:18 +01:00
ckohen
c297829d54 types(Events): rest events can be emitted on BaseClient (#6936) 2021-11-06 00:58:54 +01:00
Jiralite
28688e27d5 refactor: Deprecate application command events (#6937) 2021-11-02 14:43:30 +01:00
Tiemen
f43140abac feature(UserFlags): add BOT_HTTP_INTERACTIONS (#6733) 2021-11-01 18:50:42 +01:00
Almeida
47d74ebf81 feat: add new activity flags (#6699) 2021-11-01 18:50:36 +01:00
Advaith
e94073a6ab feat(ApplicationFlags): add message content intent flags (#6888) 2021-11-01 18:50:23 +01:00
Rodry
204aee799a types: improve toJSON methods for message components & embeds (#6925) 2021-11-01 15:09:00 +01:00
Indian Ocean Roleplay
673c03f7cf types(fix): BaseCommandInteractionOptionResolver and CommandInteraction (#6910) 2021-10-29 19:38:21 +02:00
Suneet Tipirneni
14716df6b6 feat(ThreadMemberManager): allow individual members to be fetched (#6889)
Co-authored-by: ckohen <chaikohen@gmail.com>
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-10-29 14:57:53 +02:00
Almeida
7be9170659 types(Constants): remove deleted properties from Package (#6908) 2021-10-29 14:57:12 +02:00
Micah Benac
ddf759c811 feat: add support for autocomplete interactions (#6672)
Co-authored-by: Suneet Tipirneni <suneettipirneni@icloud.com>
2021-10-29 00:47:50 +02:00
SpaceEEC
14d9a9901b types(Shard): eval returns a promise resolving with T instead of T[] (#6901) 2021-10-29 00:47:18 +02:00
Vlad Frangu
ee93a27e15 types(ApplicationCommandManager): add missing overload for fetch (#6904) 2021-10-28 16:19:19 +02:00
Suneet Tipirneni
91a432e49d types(TextBasedChannel): text channel interaction collectors should have message option (#6903) 2021-10-28 16:19:08 +02:00