LTS20050703 and ITOH
2018919fe2
feat(rest,types): slash command permissions v2 ( #2226 )
...
* Slash command perms v2
Closes : #2184
Upstream: discord/discord-api-docs@4a3b20a
- Nuke batchEditApplicationCommandPermissions (https://discord.com/developers/docs/interactions/application-commands#batch-edit-application-command-permissions )
- update JSDocs Comments (like, a lot, probably will revert unnecessary comments changes next commit)
- Add id to upsertApplicationCommands options
* fix typos
Co-authored-by: ITOH <to@itoh.at >
* docs: add regex to application command `name`
Co-authored-by: ITOH <to@itoh.at >
2022-05-25 22:32:47 +02:00
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 and ITOH
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 and ITOH
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
LTS20050703
c53aad2ea8
style: deno fmt ( #2219 )
2022-05-14 12:03:17 +01: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
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 and ITOH
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 and ITOH
b27e487e83
update DiscordMessage interface JSDocs ( #2198 )
...
Co-authored-by: ITOH <to@itoh.at >
2022-05-13 08:55:09 -04:00
LTS20050703 and ITOH
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 and ITOH
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 and ITOH
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
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 and ITOH
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 and ITOH
9d94a8616b
update createEmoji ( #2196 )
...
Co-authored-by: ITOH <to@itoh.at >
2022-05-12 14:12:32 -04:00
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
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
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
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
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
LTS20050703
2cd084be86
Delete auditlogEntry.ts ( #2165 )
2022-04-15 05:20:23 -04:00
LTS20050703 and Skillz4Killz
086258d1ea
fix mod.ts export ( #2121 )
...
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-03-22 11:28:33 -04:00
LTS20050703 and Skillz4Killz
8d4c0069b0
(transformers) return as Optionalize<typeof> ( #2117 )
...
* (transformers) return as Optionalize<typeof>
* fix check error
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-03-20 10:35:48 -04:00
LTS20050703
3073c6d575
convert typeof to () => ( #2116 )
2022-03-20 09:13:11 -04:00
LTS20050703
33405fd7d4
optionalize transformer ( #2108 )
2022-03-16 00:28:58 -04:00
LTS20050703
6fe5e0b8fd
route MESSAGE_DELETE_BULK to bot.events.messageDelete ( #2107 )
2022-03-15 21:59:56 -04:00
LTS20050703 and Skillz4Killz
64262b3afa
Document what message flags can be sent ( #2051 )
...
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-25 10:25:00 -05:00
LTS20050703 and Skillz4Killz
79dbf690dc
fix editMessage interface and function ( #2054 )
...
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-25 10:23:32 -05:00
LTS20050703 and ITOH
0245bcc7a9
docs(types): add attachment to InteractionData ( #2062 )
...
* document attachment application command type
* update jsdoc comments
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: ITOH <to@itoh.at >
2022-02-19 20:37:13 +00:00
LTS20050703
3cf0e11beb
fix(types): interaction transformer not transforming components ( #2052 )
2022-02-19 15:35:04 +01:00
LTS20050703
bea86bb47b
fix(helpers): when creating/modifying a channel permission_overwrites can omit the allow and deny ( #2053 )
...
Clarify that permission_overwrites can omit allow and deny keys when creating/modifying channel/channel ovewrites
2022-02-19 15:35:03 +01:00
LTS20050703
79e260892b
docs(types): Clarify documentation on the CREATE_PUBLIC_THREADS permission ( #2055 )
2022-02-19 15:35:03 +01:00
LTS20050703
0cb2baaea2
fix(types): invitable & createTimestamp are in ThreadMetadata and not in Channel ( #2056 )
2022-02-19 15:35:03 +01:00
LTS20050703
1f485eea0b
fix(types): ThreadMetadata#create_timestamp is optional and nullable & locked is not optional ( #2057 )
2022-02-19 15:35:02 +01:00
LTS20050703
120fae0840
fix(types): ScheduledEvent#creator_id is nullable ( #2059 )
2022-02-19 15:35:02 +01:00
LTS20050703
9a4a2909f5
docs(types): update MessageComponentTypes variant description ( #2060 )
2022-02-19 15:35:02 +01:00
LTS20050703
51ce4803af
docs(types): add link for InputTextComponent ( #2061 )
2022-02-19 15:34:47 +01:00
LTS20050703
3c272e8c8b
Add missing communication_disabled_until audit log change key ( #2044 )
...
* Add missing communication_disabled_until audit log change key
* oops it's not camelCase it's snake_case
2022-02-13 09:12:31 -05:00
LTS20050703
18935a1669
Fix bug in audit log transformer and helper ( #2043 )
2022-02-12 23:33:28 -05:00
LTS20050703 and Skillz4Killz
3c10622d69
Add locale fields to interaction structure ( #2042 )
...
* Add locale fields to interaction structure
* making locale and guildLocale optional and add a warning to guildLocale
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-12 23:32:37 -05:00
LTS20050703
0745bf7470
fix(types): add code 40004 to JsonErrorCodes ( #2039 )
2022-02-11 17:38:09 +00:00
LTS20050703
fd4e0c05be
fix(types): add code 40060 to JsonErrorCodes ( #2038 )
2022-02-11 17:31:56 +00:00
LTS20050703
3b3663f2b9
refactor: remove unused imports ( #2021 )
...
* make lib faster (delete unused import)
* Revert deno.json change
* Missing }
2022-02-09 13:38:11 +01:00
LTS20050703
dea617b1f2
style: remove .prettierrc ( #2004 )
2022-02-06 07:43:36 +01:00
LTS20050703 and Skillz4Killz
2b7b0dd05f
discord-api-docs: Document Scheduled Event Covers ( #1960 )
...
* Document Scheduled Event Covers
* using iconHashToBigInt
* using undefined instead of null
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-04 22:40:08 +01:00
LTS20050703 and Skillz4Killz
931673a68d
discord-api-docs: Document partial member data in message interaction object ( #1958 )
...
* Document partial member data in message interaction object
* Update message transformer following MessageInteraction interface changes
* an attempt to transform partial member
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-04 22:40:08 +01:00
LTS20050703 and Skillz4Killz
86023fb7ee
discord-api-docs: Document Scheduled Event Covers ( #1960 )
...
* Document Scheduled Event Covers
* using iconHashToBigInt
* using undefined instead of null
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-04 10:16:20 -05:00
LTS20050703 and Skillz4Killz
f1a6a1c258
discord-api-docs: Document partial member data in message interaction object ( #1958 )
...
* Document partial member data in message interaction object
* Update message transformer following MessageInteraction interface changes
* an attempt to transform partial member
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-04 10:15:35 -05:00
lts20050703
f57aec3895
discord-api-docs: Add stickers on preview ( #1949 )
...
* Add stickers on preview
* update getGuildPreview
* Sticker transformer
* fix forgot to update stuff
2022-02-02 10:35:54 -05:00
lts20050703
1d6db1b56d
discord-api-docs: Document stage discovery as deprecated ( #1951 )
...
* Document stage discovery as deprecated
* delete Public from PrivacyLevel, discoverableDisabled from StageInstance
* Nuke discoveryDisabled and privacyLevel
2022-02-01 22:37:17 -05:00
lts20050703
42101467f3
no longer need to check for the compatible discordeno version
2022-02-01 21:30:50 +07:00
lts20050703
b7d50a1ed4
Do not use spread syntax ... in createWebhook and editWebhook
2022-01-28 17:47:20 +07:00
lts20050703
3e1debf465
Merge branch 'discordeno:main' into 1896
2022-01-28 15:52:16 +07:00
lts20050703
a8ed800ab8
Merge branch 'discordeno:main' into 1898
2022-01-28 15:52:12 +07:00
lts20050703
2c76e9d4a5
Merge branch 'discordeno:main' into 1900
2022-01-28 15:52:09 +07:00
lts20050703
c3086d5436
Merge branch 'discordeno:main' into 1902
2022-01-28 15:52:06 +07:00
lts20050703
0e32ae58f9
Merge branch 'discordeno:main' into 1905
2022-01-28 15:52:02 +07:00
lts20050703
003be44097
Merge branch 'discordeno:main' into 1914
2022-01-28 15:51:58 +07:00
lts20050703
6f10b17866
Merge branch 'discordeno:main' into 1915
2022-01-28 15:51:55 +07:00
lts20050703
622e7d5722
Merge branch 'discordeno:main' into 1918
2022-01-28 15:51:51 +07:00
lts20050703
ead306b8f2
Merge branch 'discordeno:main' into 1906
2022-01-28 15:51:44 +07:00
lts20050703
1d2b5c5bca
Merge branch 'discordeno:main' into 1904
2022-01-28 15:51:29 +07:00
lts20050703
36216f3f4a
communicationDisabledUntil shouldn't be null
2022-01-28 14:02:31 +07:00
lts20050703
5cccd603d0
communicationDisabledUntil: discord return string, discordeno return number
2022-01-28 07:55:03 +07:00
lts20050703
6957d2ea5b
Merge branch 'discordeno:main' into gh-1912
2022-01-28 07:46:04 +07:00
lts20050703
c49eed4890
fix rest runMethod body logic
2022-01-28 07:45:14 +07:00
lts20050703
60023e1328
Merge branch 'discordeno:main' into 1939
2022-01-28 07:43:27 +07:00
lts20050703
047e8b69d4
createTimestamp: discord return string, discordeno return number
2022-01-28 07:41:23 +07:00
lts20050703
d155ea82db
createTimestamp should be number
2022-01-28 07:37:46 +07:00
lts20050703
9cba3cc9b0
Merge branch 'discordeno:main' into 1911
2022-01-28 07:35:12 +07:00
lts20050703
105265b632
member.communicationDisabledUntil should be string
2022-01-27 17:04:11 +07:00
lts20050703
7f65c70733
Add invitable and createTimestamp to Channel & DiscordenoChannel interface
2022-01-27 16:59:22 +07:00
lts20050703
e8579d6b45
Fix channel transformer
2022-01-27 10:22:36 +07:00
lts20050703
78dae37dc1
fix TypeError: Request with GET/HEAD method cannot have body.
2022-01-27 10:04:36 +07:00
lts20050703
38cb526100
should be string
2022-01-26 22:58:37 +07:00
lts20050703
c1975f70f1
Document thread.create_timestamp
2022-01-26 18:02:37 +07:00
lts20050703
55a7c03143
Bots cant be in group therefore remove icon from channel interface
2022-01-26 17:32:38 +07:00
lts20050703
9e3195c3d4
BREAKING CHANGE remove unused deleteWebhook function channelId parameter
2022-01-26 17:22:59 +07:00
lts20050703
445f8bb085
BREAKING CHANGE remove unused editWebhook function channelId parameter
...
and add comments to createWebhook and modifyWebhook interfaces' reason
2022-01-26 17:19:31 +07:00
lts20050703
6b86250546
Document message flag FAILED_TO_MENTION_SOME_ROLES_IN_THREAD
2022-01-26 16:49:59 +07:00
lts20050703
7f9fa9aa6d
Document error code 30046 (old message edit rate limit)
2022-01-26 11:02:24 +07:00
lts20050703
4d62333f84
Adds error 50068
2022-01-26 10:59:40 +07:00
lts20050703
0f28376bb6
Document X-Audit-Log-Reason on webhook endpoints
2022-01-26 10:36:12 +07:00
lts20050703
76b2735ee3
document the required permission for retrieving the welcome screen when disabled
2022-01-26 10:27:53 +07:00
lts20050703
ed508b1793
Clarification on channel icons
2022-01-26 10:25:38 +07:00
lts20050703
805d5ab855
Error code 50086
2022-01-26 10:12:50 +07:00
lts20050703
306fa22112
createEmoji and editEmoji helper options roles bigints doesn't call .toString()
2022-01-26 10:01:22 +07:00
lts20050703
0ac2c03370
Document thread invitable audit log change key
2022-01-26 09:42:46 +07:00
lts20050703
d76aedc665
Document supported option types for autocomplete
2022-01-26 09:36:15 +07:00
lts20050703
0a436da654
move to plugin
2022-01-05 07:07:37 +07:00
lts20050703
849afd4837
minor changes
2022-01-03 06:35:05 +07:00
lts20050703
0af7867b0c
Update scheduledEvents.ts
2022-01-02 13:45:34 +07:00
lts20050703
144b4b9eaf
#1877 Document max value for GET event users limit param
...
#1877 Document max value for GET event users limit param
2022-01-02 13:40:59 +07:00
lts20050703
ea91d9a480
fix get audit logs test
...
guild_scheduled_events not scheduled_events bruh
2021-12-28 22:22:00 +07:00
lts20050703
7dab1be581
fix send a message with a webhook test
...
Waits for server confirmation of message send before response, and returns the created message body (defaults to false; when false a message that is not saved does not return an error)
2021-12-28 22:16:45 +07:00
lts20050703
6fdc03b24a
fix delete invite test
2021-12-28 22:00:20 +07:00
lts20050703
81c261d6d8
Fix forgot to update transformer
2021-12-23 18:00:05 +07:00
lts20050703
71d2b468f5
#1848 Document audit logs for scheduled events
...
#1848 Document audit logs for scheduled events
add reason to CreateScheduledEvent and EditScheduledEvent interfaces
add reason.options.reason to bot.rest.runMethod's body parameter in createSheduledEvent and editSheduledEvent functions
2021-12-23 17:44:58 +07:00
lts20050703
cc95342b6d
#1862 Fix member transformer, interface
...
Fix member transformer in src/transformers/message.ts
Fix message interface in src/types/messages/message.ts
Export * from stickers.
2021-12-23 13:52:54 +07:00