Jiralite
405f9400e8
docs: no @type description and reveal info block ( #9097 )
2023-02-04 13:05:09 +00:00
Cl00e9ment
13ce78af6e
refactor: Moved the escapeX functions from discord.js to @discord.js/formatters ( #8957 )
...
* refactor: moved escapeX funcs from discord.js to @discord.js/formatters
- moved escapeX functions from discord.js to @discord.js/formatters
- converted code from JS to TS (including JSDoc and TSDoc)
- made linter happy
- modified the escapeHeading's RegExp to pass the RegExp safety test
- escapeBulletedList now conserves the bullet style (- or *)
* fix: removed useless exports and eslint command
removed useless exports and eslint command
* fix(escapeX): emojis with underlines
porting the fix made in 2c4c5c23d6 into the refactorization PR
Co-authored-by: space <spaceeec@yahoo.com >
2023-01-13 16:21:25 +00:00
widepeepoclap
b803a9a899
fix: don't auth for interaction showModal() ( #9046 )
...
Co-authored-by: space <spaceeec@yahoo.com >
2023-01-13 16:07:06 +00:00
Almeida
6a9875da05
feat(Sticker): add support for gif stickers ( #9038 )
...
* feat(Sticker): add support for gif stickers
* chore: upgrade discord-api-types
* refactor: requested changes
2023-01-13 15:29:35 +00:00
Jiralite
1c871b5b57
refactor: Use deprecate() directly ( #9026 )
...
* refactor: just call `deprecate()`
* docs: prevent crash
* refactor: back to prototype deprecation
2023-01-12 20:38:31 +00:00
Almeida
7dad50ee9a
revert: fix(DMChannel): recipientId edge case ( #9013 )
...
Revert "fix(DMChannel): recipientId edge case (discordjs#8950)"
This reverts commit 7ce9909 .
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-10 09:59:49 +00:00
Jiralite
f3fe3ced62
docs(ThreadEditOptions): Move info tag back to invitable ( #9020 )
...
docs(ThreadEditOptions): move info tag to correct property
2023-01-10 09:53:38 +00:00
Jiralite
0076589ccc
feat(GuildAuditLogs): Support after ( #9011 )
...
* feat(GuildAuditLogs): support `after`
* refactor: remove variables
They were only being used once each.
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-06 11:46:20 +00:00
Almeida
3407e1eea3
feat: add role subscriptions ( #8915 )
...
* feat: add role subscriptions
* docs: casing
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2023-01-04 00:39:31 +00:00
Jiralite
7dec892218
types: Allow builders to set channel types in discord.js ( #8990 )
...
types: allow builders to set channel types
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-02 15:24:10 +00:00
iLxlo_
6d7a143667
docs: Fix a typo in the MentionableSelectMenuInteraction link ( #9000 )
2023-01-02 16:18:07 +01:00
Jiralite
be294eaf99
feat: Add not_found to guild member chunk data ( #8975 )
...
* feat: add `not_found` to chunk data
* docs: consistency
* types: export `JSONValue`
* refactor: move into typedef area
* refactor: prefer unknown
* docs: fix parsing
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-02 11:55:06 +00:00
Voxelli
876b181312
fix(WebSocketShard): Zombie connection fix ( #8989 )
...
* fix: zombie connection
- Fix backport #7626 missing changes
- Reverted the pull request #8956
- Removed unref of wsCloseTimeout
- We are resuming the connection for zombie instead of starting a new
Co-authored-by: DraftMan <nicovanaarsen@gmail.com >
* refactor: ♻️ Format code and remove useless assignation
Co-authored-by: DraftMan <nicovanaarsen@gmail.com >
2023-01-01 17:49:20 +00:00
Jiralite
d3e9f2a355
refactor(Guild): Destructure object in guild editing ( #8971 )
...
* refactor: simplify guild editing
* chore: remove strange rule modification
* refactor: destructure more!
* refactor: remove pattern, allow `0` bit
* refactor: spread
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-31 00:37:18 +00:00
Jiralite
ad49845260
types: Swap message reaction and emoji identifier types ( #8969 )
...
* types: swap message reaction and identifier types
* docs: reflect changes
* types: simplification
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-31 00:33:01 +00:00
Jiralite
d7a09f6fce
refactor(GuildManager): Better handling of creation code ( #8974 )
...
* refactor(GuildManager): tidy up guild creation
* refactor: emit once only
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* fix: allow `0`/`0n`
* refactor: modify name
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-31 00:29:56 +00:00
Jiralite
2e22b31892
docs(ApplicationRoleConnectionMetadata): Add documentation ( #8976 )
...
docs: show `ApplicationRoleConnectionMetadata`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-31 00:26:29 +00:00
Jaworek
d8dd197a93
fix: keep other properties in triggerMetadata ( #8977 )
...
fix: keep other properties
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-31 00:17:20 +00:00
MrMythicalYT
5915f39810
types: fix actions type in automod ( #8962 )
...
* types(AutoModerationRuleCreateOptions): fix actions type
* types: update setActions
* docs: use array type for actions
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-25 20:31:59 +00:00
Almeida
07b597df16
fix(escapeX): emojis with underlines ( #8945 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-25 20:04:26 +00:00
Qjuh
43ce2a572e
fix(WebSocketShard): either start close timeout or emit destroyed but never both ( #8956 )
...
* fix(WebSocketShard): only close timeout or destroy
* Remove optional chaining
Co-authored-by: Voxelli <69213593+legendhimself@users.noreply.github.com >
Co-authored-by: Voxelli <69213593+legendhimself@users.noreply.github.com >
2022-12-25 19:05:19 +00:00
Almeida
22e2bbb0d2
feat(ClientApplication): add role connections ( #8855 )
...
* feat(ClientApplication): add role connections
* fix: constructor and edit types
* fix: rename typedef
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-24 08:00:39 +00:00
Almeida
7ce990954e
fix(DMChannel): recipientId edge case ( #8950 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-24 07:42:53 +00:00
Jiralite
0b8b114761
docs: Fix malformed overridden documentation ( #8954 )
...
* docs: override `resolve()` & `resolveId()`
* docs(CategoryChannel): move `setParent()` up
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-24 07:35:32 +00:00
MrMythicalYT
6614603326
fix: return only boolean for disabled ( #8965 )
...
* fix: return only boolean for `disabled`
* fix: return only boolean for `disabled`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-24 07:29:32 +00:00
Almeida
429dbccc85
feat(CommandInteractionOptionResolver): add channelTypes option to getChannel ( #8934 )
...
* feat(CommandInteractionOptionResolver): add `channelTypes` option to `getChannel`
* fix: thread types
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-20 20:32:45 +00:00
Almeida
25c27eac14
fix: export missing escapeX() functions ( #8944 )
...
fix: export missing escapeX functions
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-20 16:20:43 +00:00
Qjuh
5eab5fc06c
fix(WebSocketShard): only cleanup the connection if a connection still exists ( #8946 )
...
fix(WebSocketShard): only cleanup if connection
2022-12-18 15:18:07 +00:00
Jiralite
dd62be077d
docs(GuildForumThreadManager): Fix sticker type ( #8940 )
2022-12-16 18:20:11 +01:00
Almeida
c76e170786
fix(resolveColor): invalid colors ( #8933 )
...
Fixes https://github.com/discordjs/discord.js/issues/8932
2022-12-16 14:28:18 +01:00
Almeida
cbafd479b3
feat(ForumChannel): add defaultForumLayout ( #8895 )
...
* feat(ForumChannel): add `defaultForumLayout`
* fix: lockfile
2022-12-16 13:27:11 +00:00
Suneet Tipirneni
7a5134459c
feat: add support for nsfw commands ( #7976 )
...
* chore: update
* fix: add edit changes
* chore: make requested changes
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-16 02:04:56 +00:00
Tristan Camejo
6540914b4a
refactor(sharding): use switch statement ( #8928 )
2022-12-15 08:07:28 +00:00
Ben
627511d652
feat(InteractionResponse): createdTimestamp ( #8917 )
...
* feat(InteractionResponse): createdTimestamp
* feat(InteractionResponse): createdTimestamp
* Apply suggestions from code review
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
Co-authored-by: MrMythicalYT <91077061+MrMythicalYT@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-14 21:35:40 +00:00
MrMythicalYT
a7b55c1460
refactor: use consistent naming for options ( #8901 )
...
* refactor: use consistent naming for options
* chore: update param names in typings
* chore: update forgotten `data` param
* Update packages/discord.js/src/structures/Guild.js
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-14 21:32:38 +00:00
Jiralite
1b151db59c
refactor(CommandInteractionOptionResolver): Loosen mentionable checks ( #8910 )
...
refactor(CommandInteractionOptionResolver): loosen mentionable checks
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-14 21:29:29 +00:00
Qjuh
aa8c57dab6
fix(WebSocketShard): clear listeners on reconnect ( #8927 )
2022-12-14 21:23:20 +00:00
muchnameless
b14604abde
fix: re-export formatters ( #8909 )
...
* fix: re-export formatters
* future-proof typings
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-12 08:49:24 +00:00
Jiralite
976b234e9d
docs: Fix deprecated links ( #8907 )
...
docs: fix malformed deprecated descriptions
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-06 16:30:48 +00:00
MrMythicalYT
c48ff5e420
docs(UserFlagsBitField): make .Flags static ( #8902 )
...
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2022-12-06 16:27:12 +00:00
MrMythicalYT
45faa19982
feat(Guild): add disableInvites method ( #8801 )
...
* feat(GuildInviteManager): add setDisabled method
* fix: formatting
* refactor: move helper method to `Guild`
* fix: rename method
* fix: add newline before jsdoc
* fix: remove disallowed trailing space
* Update packages/discord.js/src/structures/Guild.js
Co-authored-by: Hackerboi 69 <62872992+thehackerboi69github@users.noreply.github.com >
Co-authored-by: Hackerboi 69 <62872992+thehackerboi69github@users.noreply.github.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2022-12-02 13:21:59 +00:00
Jiralite
11d195d04f
fix: Prevent crash on no select menu option ( #8881 )
...
* fix: no crash on no option
* refactor: consistency in ??
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-01 10:49:14 +00:00
MrMythicalYT
decbce4010
feat(Webhook): add channel property ( #8812 )
...
* feat(Webhook): add `channel` property
* fix: allow ForumChannel type
* fix: disallow thread channel type
* fix: formatting
* Apply suggestions from code review
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2022-11-26 13:31:05 +01:00
Jaworek
cb77fd02d0
docs: describe InteractionEditReplyOptions ( #8840 )
...
* docs: add 'description' to interactionreplyoptions
* Update packages/discord.js/src/structures/interfaces/InteractionResponses.js
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-25 17:26:33 +00:00
Eejit
7e06f68185
fix(Activity): Fix equals() not checking for differing emoji ( #8841 )
...
* Fix presence updating
* Update packages/discord.js/src/structures/Presence.js
Co-authored-by: Almeida <almeidx@pm.me >
* Update Presence.js
* Better emoji checking
* Revert "Better emoji checking"
This reverts commit 44d52bfde8 .
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-25 17:17:55 +00:00
Jiralite
d2754802cc
docs(AutoModerationRuleManager): Describe cache ( #8848 )
...
docs(AutoModerationRuleManager): describe cache
2022-11-25 15:24:19 +00:00
Jiralite
65bc0adbf4
docs: Fix message action row components ( #8819 )
...
* docs: fix message action row components
* docs: remove unused external links
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-19 22:20:49 +00:00
Jiralite
fd4ba5eaba
feat: Auto Moderation ( #7938 )
...
* feat: initial AutoMod commit
* types: Typo in class name
Co-authored-by: Jonathan <54381371+axisiscool@users.noreply.github.com >
* refactor: move things around
* refactor: remove undocumented property
* chore: add new intents to issue form
* feat: add initial basic manager
* feat(AutoModRule): add new properties
* feat: add events
* feat(GuildAuditLog): cache rules
* refactor: move JSDoc to where it is actually used
* refactor(AutoModRule): add `_patch()` method
* feat(AutoModRuleManager): add resolvers
* feat(Sweepers): add new manager
* types: nullify first parameter of `autoModerationRuleUpdate`
* types: add manager to `Caches`
* docs(AutoModRule): update `metadata` docstring
* feat: add execution event
* fix(AutoModActionExecution): export class
* refactor(AutoModRule): `triggerType` is not modifiable
* docs(AutoModRule): link class
* feat: add trigger metadata definitions
* docs(AutoModRule): typos
* feat(AutoModRule): action metadata
* types: Proper casing of name
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com >
* refactor: only patch data if exists
* types: `preset` is an array
* types(AutoModRuleActionMetadata): nullify all
* feat(AutoModRuleManager): add `fetch()`
* docs(AutoModRule): tweak some wording
* docs(AutoModRule): use "array" over "list"
* docs(AutoModRuleResolvable): fix union
* types: adjust some names
* feat(AutoModRuleManager): add `create()`
* feat(AutoModRuleManager): add `delete()`
* refactor: prefer full auto moderation name
* docs(AutoModerationRuleManager): fix a fetch example
* refactor(Sweepers): alphabetise methods
* chore: remove testing
* fix(AutoModerationRuleCreateOptions): add `reason`
* fix: typo for `presets`
* fix(AutoModerationRuleCreateOptions): `actions` is required
* fix(AutoModerationRuleManager): handle properties that are unrequired
* feat(AutoModerationRuleManager): add `edit()`
* feat(GuildAuditLogsEntry): add auto moderation rules
* refactor: prefer "AutoModerationActionExecutionAction"
* refactor: annotate todos and doc fixes
* feat(AutoModerationRule): add guild getter
* docs(AutoModerationRule): rule -> auto moderation rule
* docs(AutoModerationRuleEditOptions): `eventType` is optional
* feat(AutoModerationRule): add helpers
* docs: random string updates
* chore: add TODOs
* feat(AutoModerationActionExecution): add helpers
* feat: support role and channel resolvables
* chore: high priority todo to keep me in solitary
* refactor(AutoModerationActionMetadataOptions): allow resolvables
* chore: tidy up from merge
* docs(AutoModerationRule): document extension
* feat: export `AutoModerationRuleManager`
* chore(ActionsManager): add new actions
* chore: add to websocket index
* refactor(AutoModerationActionExecution): send the guild across
* docs(AutoModerationActionExecution): typo
* docs(AutoModerationRule): deduplicate a word
* docs(Guild): dot
* test: add some basic tests
* docs(AutoModerationRuleManager): fetch is optional
* docs(AutoModerationActionExecution): prefer non-links
* types: `presets` is an array of numbers
* docs(AutoModerationRuleEditOptions): `name` is optional
* docs(AutoModerationRule): fix type for `exemptChannels`
* docs(AutoModerationRuleUpdateAction): remove "object"
* feat: add `allow_list`
* fix(GuildAuditLogsEntry): pass guild
* docs(AutoModerationRuleManager): correct fetch example
* chore: prettier
* refactor: remove unneeded optional chaining operator
* feat: add mention limit
* docs(AutoModerationRuleManager): document new requirement
* refactor: conform to message content intent
* docs: document permission for event
* docs: refactor intent message
* docs: dot
* docs: remove string in link
* refactor: document upstream changes
* fix(AutoModerationRuleDelete): Correct event fire
Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com >
* feat(AutoModerationRule): Add `setMentionTotalLimit()` helper method
* feat(AuditLogEntries): add new extra fields
* types: add `guild` in constructors
* types: update typings
* refactor(AutoModerationRuleManager): `&&` shorthand
* types: remove leftover type
* chore: types
* docs: update API types
* docs: Tweak guild wording
Co-authored-by: Aura Román <kyradiscord@gmail.com >
* feat: add regular expression matching
* docs: update `allowList` wording
* refactor: deduplicate `guildId`
Co-authored-by: Jonathan <54381371+axisiscool@users.noreply.github.com >
Co-authored-by: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com >
Co-authored-by: GoldenAngel <50855202+GoldenAngel2@users.noreply.github.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2022-11-19 22:06:13 +00:00
Jiralite
8ed5c1beb6
docs: Specify ActionRowBuilder for components ( #8834 )
...
docs: `ActionRowBuilder` for `components`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-19 21:50:04 +00:00
MrMythicalYT
09f65b724b
docs: add @extends for select menu classes ( #8824 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-19 21:43:00 +00:00