Jaworek
664cccb270
docs: make interactionResponse as optional ( #9179 )
2023-02-27 21:38:03 +01:00
Synbulat Biishev
e78b8ad3fb
fix(Message#deletable): add check for deletable message types ( #9168 )
...
* fix(Message#deletable): add check for deletable message types
* docs: update docs
* fix: add check for `AutoModerationAction` message
* style: better style
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-25 14:38:05 +00:00
Sugden
a9495bd8f0
fix(Message): bulkDeletable permissions should be retrieved later for DMs ( #9146 )
...
* fix(Message): permissions check should be done later
the getter will error if used on a message originating from a DM
* refactor: remove unessercary chaining
2023-02-25 14:21:53 +00:00
Jiralite
1ba22f4c9e
feat: Add role subscription data ( #9025 )
...
* feat: add role subscription data
* docs: specify message type
* types: use interface
* docs: add word
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 19:47:08 +00:00
Synbulat Biishev
ff85481d3e
feat: add Message#bulkDeletable ( #8760 )
...
* feat: add `Message#bulkDeletable`
* feat: add requested changes
* fix: add check for `ManageMessages` permission
* fix: `.permissionsFor()` exist only in guild channels
* feat: apply requested changes
* types: add type
* fix: do not return `undefined`
* fix: add property to docs
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-11-06 03:51:34 +00:00
advaith
6e348ffd1d
docs(MessageReplyOptions): remove duplicate stickers field ( #8766 )
...
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2022-10-31 11:39:27 +00:00
Almeida
aec44a0c93
refactor: rename Error to DiscordjsError internally ( #8706 )
...
* refactor: rename Error to DiscordjsError internally
* chore: remove globalThis usage
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-06 09:21:03 +00:00
Suneet Tipirneni
9effd82abe
docs: fix AwaitMessageComponentOptions typedef ( #8696 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-05 20:41:36 +02:00
Suneet Tipirneni
8a8d519c9c
feat: add support for guild forums ( #7791 )
...
* feat: add support for guild forums
* feat(webhook): add support for creating forum channel posts
* fix: duplicated docs
* feat: add support for message counts
* feat: add support for latest upstream changes
* fix: serialize forum channels
* types: fix channel unions
* types: fix tests
* types: fix tests (again)
* types: fix tests (again (again))
* chore: make requested changes
* chore: fix bugs and make requested changes
* types: use correct type for guild forum start messages
* chore: remove console.log
* chore: make requested changes
* chore: make requested changes
* chore: fix docs
* Update packages/discord.js/src/managers/GuildForumThreadManager.js
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: update types
* chore: make requested changes
* chore: Apply suggestions
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: Jonathan Rubenstein <jrubcop@gmail.com >
* fix: import `ErrorCodes`
* fix: remove defunct code
* refactor: be consistent with channel class names
* feat(GuildChannel): add flags
* fix: rename file
* refactor: channel flags are everywhere!
* fix: import flags correctly
* chore(ThreadChannel): update message count string
* docs(Channels): correct `@param` type
* docs(Channels): ignore transformGuildDefaultReaction
* refactor: emoji object in tags
* chore: renaming consistency
* fix: document default reaction emojis in patching
* fix(GuildChannelManager): document `defaultThreadRateLimitPerUser`
* chore: semicolon
* docs(ErrorCodes): document `GuildForumMessageRequired`
* refactor: transform default reactions
* docs(APITypes): Add `ChannelFlags`
* fix: convert tags properly
* fix: pass an array of snowflakes
* refactor: handle flags better
* fix(ThreadChannel): receive tags
* fix(PartialGroupDMChannel): nullify `flags`
Apparently did not do this earlier.
* chore: misc sorting
* refactor: nullify emoji on tags if not present
* refactor(ForumChannel): modify returns
* types: protect the thread manager!
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
* chore: update `ChannelType` usage
* Update index.d.ts
* docs: Update default reaction emoji property names
Co-authored-by: Almeida <almeidx@pm.me >
* fix: only `name` is required when editing tags
- discord/discord-api-docs#5458
* types: add tests for `channel.flags`
* fix: allow unsetting the default reaction emoji
* refactor: remove v13 remnants
* docs: add missing closing tag
* feat: add `rateLimitPerUser`
* feat: add missing properties for create guild channel
- discord/discord-api-docs#5474
* refactor(GuildForumThreadManager): refactor message payload
* fix: handle magical `null` case
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Jaworek <jaworekwiadomosci@gmail.com >
Co-authored-by: Jonathan Rubenstein <jrubcop@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: A. Román <kyradiscord@gmail.com >
2022-09-18 14:23:44 +00:00
Almeida
669c3cd256
refactor: replace usage of deprecated ChannelTypes ( #8625 )
...
refactor: use new non-deprecated `ChannelType`s
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-17 13:56:19 +00:00
Jiralite
8e1afaebdb
refactor: Split message send/edit types/documentation ( #8590 )
...
* refactor: split message send/edit types
* refactor: move `MessageEditOptions`
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-11 18:22:53 +00:00
Jiralite
a7deb8f898
feat: Add channel & message URL formatters ( #8371 )
2022-07-29 10:47:23 +02:00
Jiralite
2130aae321
docs(Message): Document gateway intent for content ( #8364 )
2022-07-27 12:10:05 +02:00
Jiralite
80b9738957
docs: Use info blocks for requirements ( #8361 )
2022-07-27 12:09:50 +02:00
Ryan Munro
34ba9d1c4c
docs: update docs and examples to PascalCase links ( #8305 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
2022-07-25 11:13:09 +02:00
Tyler Resch
ab238a9046
docs(MessageInteraction#commandName): updated description ( #8212 )
...
Co-authored-by: A. Román <kyradiscord@gmail.com >
2022-07-03 15:34:47 +02:00
Jiralite
a3799f9ebb
types: Use ThreadAutoArchiveDuration from discord-api-types ( #8145 )
2022-06-22 11:23:39 +02:00
DD
e68effa822
refactor: errors ( #8068 )
...
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2022-06-20 14:46:35 +02:00
Jiralite
db663a55c2
docs: TextBasedChannel -> TextBasedChannels typos ( #8110 )
2022-06-18 13:02:41 +02:00
Suneet Tipirneni
e53d162198
refactor(util): make utility functions top level ( #8052 )
...
* refactor(util): make functions top level
* types: make channel typeguards more strict
* chore: make requested changes
2022-06-13 20:04:53 +02:00
muchnameless
f2b267c079
fix(Message): force fetching ( #8047 )
2022-06-09 10:35:52 +02:00
Suneet Tipirneni
dfadcbc2fd
refactor(attachment): don't return attachment builders from API ( #7852 )
...
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2022-06-04 22:33:13 +02:00
Synbulat Biishev
aed687b09f
feat: move me to GuildMemberManager manager ( #7669 )
...
Co-authored-by: muchnameless <12682826+muchnameless@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
2022-05-12 22:51:28 +02:00
Jiralite
dfd9eb20b2
refactor(ThreadChannel): Remove MAX helper from threads ( #7846 )
2022-05-12 10:29:21 +02:00
SpaceEEC
4ba0f56b6a
feat(VoiceChannel): add support for text in voice ( #6921 )
2022-05-02 09:39:14 +02:00
MateoDeveloper
ab4c608b97
refactor(MessageAttachment): use Attachment instead ( #7691 )
...
* fix: TOKEN_INVALID error not thrown at login with invalid token
* refactor(MessageAttachment): Use Attachment instead
* Delete a mistake
* Add WebSocketManager file, deleted by error
* add a new line on WebSocketManager file
* fix: imports
* fix: conflict with typings
* chore: update reference on GuildStickerManager
2022-04-17 10:57:38 +02:00
Suneet Tipirneni
e805777a7a
refactor: use static fields ( #7701 )
...
* refactor: use static fields
* chore: refactor missed areas
* chore: remove memberof docs
* chore: make type changes
2022-03-24 02:38:05 +01:00
Suneet Tipirneni
72577c4bfd
feat: add API v10 support ( #7477 )
...
* feat: add API v10 support
* refactor: update deps
* chore: rebase fixes
2022-03-15 21:37:07 +01:00
Suneet Tipirneni
549716e4fc
refactor: Don't return builders from API data ( #7584 )
...
* refactor: don't return builders from API data
* Update packages/discord.js/src/structures/ActionRow.js
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
* fix: circular dependency
* fix: circular dependency pt.2
* chore: make requested changes
* chore: bump dapi-types
* chore: convert text input
* chore: convert text input
* feat: handle cases of unknown component types better
* refactor: refactor modal to builder
* feat: add #from for easy builder conversions
* refactor: make requested changes
* chore: make requested changes
* style: fix linting error
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
Co-authored-by: almeidx <almeidx@pm.me >
2022-03-12 19:39:23 +01:00
Almeida
00728f72b3
feat(message): add reason on pin and unpin ( #7520 )
2022-02-23 08:38:50 +01:00
Rodry
532846b1f8
refactor!: remove redundant API defaults ( #7449 )
2022-02-13 12:29:22 +01:00
Suneet Tipirneni
0b866c9fb2
docs: add external builder docs links ( #7390 )
2022-02-02 22:10:03 +01:00
Suneet Tipirneni
fbb1d0328b
refactor(Bitfield): use discord-api-types enums instead ( #7313 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2022-01-28 19:14:20 +01:00
IRONM00N
47633f0fd2
fix: missed enums and typings from #7290 ( #7331 )
2022-01-25 21:23:13 +01:00
Antonio Román
d2d3a80c55
refactor: switch to /builders Embed ( #7067 )
2022-01-24 20:17:21 +01:00
Suneet Tipirneni
213acd7997
feat: Enum resolvers & internal enum string removal ( #7290 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2022-01-19 14:11:10 +01:00
Suneet Tipirneni
101d7c5ffa
refactor: remove djs components and use /builders components instead ( #7252 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
2022-01-17 13:13:48 +01:00
Suneet Tipirneni
aa6d1c74de
refactor: remove discord.js enums and use discord-api-types enums instead ( #7077 )
2022-01-12 02:00:41 +01:00
Antonio Román
e082dfb158
refactor(SnowflakeUtil): switch to @sapphire/snowflake ( #7079 )
2022-01-08 19:11:33 +01:00
Antonio Román
cee7fd181c
refactor: remove deleted field ( #7092 )
2022-01-08 12:41:35 +01:00
Jan
55e21f5366
refactor(Dates): save timestamps everywhere and use Date.parse ( #7108 )
2022-01-08 12:41:20 +01:00
Noel
16390efe6e
chore: monorepo setup ( #7175 )
2022-01-07 17:18:25 +01:00