ITOH
bc2f66c773
release: 13.0.0-rc40
...
Added:
- `convertRestError` function so you can edit the error stack better/add additional handling
- `Collection#forceSet` method which ignores the `maxSize` limit of the collection
Changed:
- Intent calculation now needs to be done manually (eg. `Intents.Guilds | Intents.GuildMessages`) **BREAKING**
Fixed:
- `ApplicationCommandOption#required` is optional
- `createInvite` sending the wrong value for `target_application_id`
- `editApplicationCommandPermissions` needs a bearer token to access the related endpoint **BREAKING**
- `sendInteractionResponse` not uploading files
Removed:
- leftover console.log in the `spawnShards` and `processGlobalQueue` functions
13.0.0-rc40
2022-05-25 19:22:12 +02:00
ITOH
86116787be
Merge branch 'main' of github.com:discordeno/discordeno into main
2022-05-25 18:53:46 +02:00
ITOH
72fec3a4c6
fix(rest): sendInteractionResponse file upload ( #2239 )
...
* fix(rest): `sendInteractionResponse` file upload
* f
2022-05-25 15:38:13 +01:00
ITOH
be5bcb5bbc
fix(rest)!: editApplicationCommandPermissions ( #2238 )
...
* fix(rest)!: `editApplicationCommandPermissions`
- add `bearerToken` option
- add headers to `RestPayload`
- remove `batchEditApplicationCommandPermissions` since the related endpoint has been removed
* fix header prefix
2022-05-25 09:53:53 -04:00
ITOH
53d7b31041
refactor(.github,README,gateway,plugins/fileloader,tests,types)!: make intent calculation manual ( #2243 )
...
This changes the calculation of intents to be manual to the dev.
This is to improve overall consistency of our code base, also it is not a big drawback for users since intents are usually done once and then never (seldom) touched again.
2022-05-25 09:50:31 -04:00
凱恩Kane
f7f4b7c384
targetApplicationId missing ( #2244 )
2022-05-25 09:48:57 -04:00
ITOH
d7883855ec
refactor(.github,README,gateway,plugins/fileloader,tests,types)!: make intent calculation manual
...
This changes the calculation of intents to be manual to the dev.
This is to improve overall consistency of our code base, also it is not a big drawback for users since intents are usually done once and then never (seldom) touched again.
2022-05-24 23:16:01 +02:00
ITOH
3a5263c4e9
style: deno fmt
2022-05-24 22:01:44 +02:00
Endy
9610403b26
Made required optional for command option ( #2234 )
2022-05-22 08:39:08 -04:00
meister03
5be45f5a77
Add forceSet option for collection ( #2232 )
...
* Add forceSet option for collection
* Use .forceSet approach instead oveer-complicated set options
Co-authored-by: meister03 <root@_HOSTNAME_>
2022-05-22 08:38:41 -04:00
meister03
4e5c7869d9
Add Support for Custom Error Converter ( #2231 )
...
Co-authored-by: meister03 <root@_HOSTNAME_>
2022-05-19 19:54:05 -04:00
Skillz4Killz
f7e11d6ea6
fix: whoopsies
2022-05-18 18:55:19 +00:00
Skillz4Killz
92b6f27491
BREAKING: fixes shard spawning of final shard bug
13.0.0-rc39
2022-05-18 18:36:48 +00:00
Skillz4Killz
85acfd4c2e
fix: final shard bug not starting up
2022-05-18 18:32:47 +00:00
Skillz4Killz
a920c2be1b
fix: remove unused log
2022-05-18 17:05:06 +00:00
Skillz4Killz
bc2a7ade24
fix: bot id optional on createBot
2022-05-18 16:57:50 +00:00
Skillz4Killz
4c67ea3482
fix: make intents and events optional
2022-05-18 16:34:31 +00:00
Skillz4Killz
332c47bdcc
release: fix exports for helpers plugin
13.0.0-rc38
2022-05-18 16:18:46 +00:00
Skillz4Killz
21cb40eaa2
fix: add missing exports to helpers plugin
2022-05-18 16:17:45 +00:00
Skillz4Killz
c4310a5c30
release: rc37 fix plugins typings
13.0.0-rc37
2022-05-18 16:13:11 +00:00
Skillz4Killz
0258722f24
fix: return type of helpers plugin
2022-05-18 16:12:51 +00:00
Skillz4Killz
3f1c924b9c
fix: permissions plugin should return valid type
2022-05-18 16:04:02 +00:00
LTS20050703
4aab0df69c
docs(rest,types): Update AuditLog related comments ( #2225 )
...
* deno fmt
* Update audit log interfaces
Closes : #2214
Upstream: https://github.com/discord/discord-api-docs/commit/618691228a5d8d5ffc1953cbd656f98a54d24cfb
Update GetAuditLogs interface
Update AuditLogEvents enum
Update DiscordAuditLog and DiscordAuditLogEntry interfaces JSDOcs
Update DiscordAuditLogChange interface (https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-exceptions )
* """fixed"""
* Fix typos
Co-authored-by: ITOH <to@itoh.at >
* deno fmt
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-16 08:45:56 -04:00
LTS20050703
6926ec1d29
docs(helpers,types): add discord doc links & remove leftover comments ( #2223 )
...
* deno fmt
* fix TODO comments and commented code
* revert changes to template
* remove reference
Co-authored-by: ITOH <to@itoh.at >
2022-05-15 14:15:03 -04:00
LTS20050703
c2e3ef47b9
fix(rest,types): getArchivedThreads before option and wrong return type ( #2222 )
...
* deno fmt
* fix: getArchivedThreads options and return type
* Update types/discord.ts
Co-authored-by: ITOH <to@itoh.at >
* convert before number timestampt to ISO string
Co-authored-by: ITOH <to@itoh.at >
2022-05-15 14:14:45 -04:00
LTS20050703
73e34b262d
refactor(plugins/permissions)!: rename createForumPosts to createForumPost ( #2220 )
...
* deno fmt
* fix: plugins/permissions: channels/forums/createForumPosts
2022-05-14 22:02:02 +02:00
Skillz4Killz
ddc0c34ffc
Update constants.ts
13.0.0-rc36
2022-05-14 08:06:39 -04:00
LTS20050703
c53aad2ea8
style: deno fmt ( #2219 )
2022-05-14 12:03:17 +01:00
ITOH
544cfdbc1c
fix(.github): repo syncer remove deleted files ( #2216 )
2022-05-14 12:02:33 +01:00
meister03
8e3a2f066a
fix(types): use snowflake transformer instead of direct BigInt call ( #2217 )
...
Co-authored-by: meister03 <root@_HOSTNAME_>
2022-05-14 12:02:07 +01:00
meister03
7caab52b68
Forum channel ( #2160 )
...
* [WIP] Forum Channels
* Delete package-lock.json
🤕
* Add Message typings and fix createForumPost
* Remove unnecessary comment
* Update helpers/channels/forums/createForumPost.ts
Use transformer
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com >
* Update helpers/channels/forums/createForumPost.ts
Use Pascal case for `CreateForumPostWithMessage`
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* Update helpers/channels/forums/createForumPost.ts
Use Pascal case for `CreateForumPostWithMessage`
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com >
* Remove unneeded types
* Revert Review and Edit it
* Add reason
Co-authored-by: meister03 <root@_HOSTNAME_>
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-13 10:28:53 -04:00
LTS20050703
749dafd1ce
add default_member_permissions and dm_permission ( #2215 )
...
* add default_member_permissions and dm_permission
* update application command transformer and interfaces
* fix type error
2022-05-13 10:25:15 -04:00
LTS20050703
453fd45ef7
localization updates ( #2206 )
...
* localization updates
Upstream: https://github.com/discord/discord-api-docs/commit/2f854d3fd675a9953d1bb8d6858a03c8a9642337
Types: DiscordApplicationCommmand and DiscordApplicationCommandOption: Update documentation
Types: DiscordActivityButton: Add documentation link
Helper: upsertApplicationCommand: All fields are optional, but any fields provided will entirely overwrite the existing values of those fields.
* revert unrelated changes
* update SLASH_COMMANDS_NAME_REGEX
* createApplicationCommand options: AtLeastOne instead of Partial
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-13 09:25:57 -04:00
LTS20050703
de292cd613
add support for get guild bans options ( #2207 )
...
* add support for get guild bans options
* fix getBans query string params
* fix typo
Co-authored-by: ITOH <to@itoh.at >
* Update helpers/guilds/getBans.ts
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: ITOH <to@itoh.at >
2022-05-13 08:59:47 -04:00
LTS20050703
b27e487e83
update DiscordMessage interface JSDocs ( #2198 )
...
Co-authored-by: ITOH <to@itoh.at >
2022-05-13 08:55:09 -04:00
LTS20050703
b542c65ac1
Misc documentation fixes, mostly around optional fields and return types ( #2194 )
...
* update createRole
* misc docs fixes, mostly optional
* parity: return undefined for 204 no content response
* undo return undefined
* undo createRole changes
https://github.com/discordeno/discordeno/pull/2195#pullrequestreview-971240431
* undo reordering
Co-authored-by: ITOH <to@itoh.at >
2022-05-13 08:54:20 -04:00
LTS20050703
e4c8cde142
add guild widget settings interface, transformer ( #2197 )
...
* add guild widget settings interface, transformer
* fix bot.transformers.widgetSettings is not a function
Co-authored-by: ITOH <to@itoh.at >
2022-05-13 08:51:58 -04:00
LTS20050703
939cb93700
update DiscordInteractionData interface ( #2208 )
...
* update DiscordInteractionData interface
add guildId
add type
also update interaction transformers
* revert re-order changes
Co-authored-by: ITOH <to@itoh.at >
2022-05-12 14:21:51 -04:00
LTS20050703
a72ded7615
fix getPruneCounts query string params ( #2211 )
...
* fix getPruneCounts query string params
* Apply suggestions from code review
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-12 14:18:36 -04:00
LTS20050703
2a330173d5
update application command localization jsdocs ( #2199 )
...
* update application command localization jsdocs
* update applicationCommand transformers
Co-authored-by: ITOH <to@itoh.at >
2022-05-12 14:16:45 -04:00
LTS20050703
9d94a8616b
update createEmoji ( #2196 )
...
Co-authored-by: ITOH <to@itoh.at >
2022-05-12 14:12:32 -04:00
LTS20050703
d4e109a48e
Add default_auto_archive_duration to createChannel helper options ( #2202 )
...
* Add default_auto_archive_duration to createChannel helper options
* Update helpers/channels/createChannel.ts
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-12 13:53:51 -04:00
LTS20050703
8807310b85
update DiscordApplication ( #2203 )
...
* update DiscordApplication
* revert re-order changes
* fix typo
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-12 13:42:26 -04:00
LTS20050703
6a1016d81b
add channel hub type ( #2205 )
...
* add channel hub type
* Update types/shared.ts
Co-authored-by: ITOH <to@itoh.at >
* fix typo
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-12 13:40:13 -04:00
LTS20050703
b830d8a4c4
Enabled property wrongfully marked present ( #2209 )
...
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-12 13:18:35 -04:00
LTS20050703
840aea814a
Document error code 50080 ( #2210 )
...
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-12 13:18:08 -04:00
Skillz4Killz
d8ed2ddb59
Update local_tests.yml
2022-05-12 13:16:52 -04:00
ITOH
199d616f04
style: fmt
2022-05-12 19:03:03 +02:00
Skillz4Killz
d28bd01992
fix: add more utils unit tests
2022-05-11 13:33:54 +00:00
Skillz4Killz
4290c8c9a8
fix: remove old threads test
2022-05-11 13:26:22 +00:00