ITOH
34a358f8bf
feat(helpers,types)!: slash command localization ( #2129 )
...
* feat(helpers,types): slash command localization
Discord has documented the slash command localization feature now.
This adds the full functionality for those to Discordeno.
Additionally a `Locales` has also been added to allow for better typing.
Reference: https://github.com/discord/discord-api-docs/pull/4653
* suggestion
* better locales type
* f
* fix serializing
* stupid direct pushes
* b
2022-03-27 11:02:27 -04:00
ITOH
23ebfac286
feat(types): add premiumSubscriber to RoleToggles ( #2141 )
...
In the role tags discord sends a `premium_subscriber` field. It seems that this has been forgotten to add.
Reference: https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure
2022-03-27 11:01:20 -04:00
ITOH
468a85ffa5
feat(types): add image_hash audit log change key ( #2142 )
...
This adds the `image_hash` audit log change key which is being used when a guild scheduled event cover image gets updated.
Reference: https://github.com/discord/discord-api-docs/pull/4707
2022-03-27 11:00:50 -04:00
Skillz4Killz
27e863def0
fix: big bot template
2022-03-25 12:44:21 +00:00
Skillz4Killz
9a539ba17f
Merge branch 'main' of https://github.com/discordeno/discordeno into main
2022-03-25 10:38:17 +00:00
Skillz4Killz
92c281529d
fix: sendWebhook components
2022-03-25 10:38:12 +00:00
ITOH
2c2ccb252c
feat(helpers,types)!: add guild template transformer ( #2132 )
...
* feat(helpers,types)!: add guild template transformer
This adds a template transformer. Also this fixes incorrect type definitions regarding templates.
Breaking Change: The previously called `Template` interface which was used for creating templates has been renamed to `CreateTemplate`
* fmt
* forgot to add this
* use data
2022-03-25 06:15:17 -04:00
Skillz4Killz
213b4eebdf
fix: remove deprecated props
2022-03-22 22:57:16 +00:00
Skillz4Killz
0d920393c4
fix: deno fmt
2022-03-22 21:38:41 +00:00
LTS20050703
086258d1ea
fix mod.ts export ( #2121 )
...
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-03-22 11:28:33 -04:00
Skillz4Killz
4787a430b7
fix: interaction data option transformer
2022-03-22 10:17:41 +00:00
Skillz4Killz
efeec03354
fix: cleanup some old ts-ignores
2022-03-21 12:20:31 +00:00
Skillz4Killz
fe42864b00
fix: add nitroStickerPacks helper. Closes #2095
2022-03-21 12:08:43 +00:00
Skillz4Killz
b22e7f954f
fix: select menu placholder max length 150. Closes #2085
2022-03-21 11:08:15 +00:00
Skillz4Killz
1ea7c466b6
fix: lil bit of cleanup
2022-03-21 08:07:02 +00:00
Skillz4Killz
45b075c5b5
fix: discriminator is now a string
2022-03-20 17:38:53 +00:00
Awesome Stickz
b25801c9e3
fix: types exports of transformers ( #2119 )
...
* fix: types exports of transformers
* fix: deno fmt
2022-03-20 12:33:24 -04:00
Skillz4Killz
ef6c4a8d05
Merge branch 'main' of https://github.com/discordeno/discordeno into main
2022-03-20 14:51:44 +00:00
Skillz4Killz
3d81fa2008
fix: add newly_created prop to channel for threads
2022-03-20 14:51:42 +00:00
LTS20050703
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
Skillz4Killz
b92874788d
fix: i hate this fmt
2022-03-20 13:57:15 +00:00
Skillz4Killz
e3e0f2b975
fix: add event id to stage instance. Closes #2092
2022-03-20 13:57:00 +00:00
Skillz4Killz
7c6a35a3f8
fix: add component.value Closes Component transform doesn't set value #2110
2022-03-20 13:45:30 +00:00
Skillz4Killz
53a811f8d7
fix: omg this fmt
2022-03-20 12:35:25 +00:00
Skillz4Killz
8d0c0400d7
fix: omg this dumb fmt
2022-03-20 10:31:00 +00:00
Skillz4Killz
9d230c5936
fix: guild.channels
2022-03-20 10:24:48 +00:00
Skillz4Killz
5c2ed9573c
fix: collection and array support in optionalize
2022-03-19 15:06:07 +00:00
Skillz4Killz
cf13780765
fix: fmt
2022-03-18 04:20:14 +00:00
Yuzu
33bafd1f6c
fix: get rid of type errors for now ( #2113 )
2022-03-18 00:19:55 -04:00
Skillz4Killz
44f02d0c65
fix: guild toggles to bigint and cleanup
2022-03-16 21:56:43 +00:00
Skillz4Killz
ecdd33978f
fix: guild transformer type issues
2022-03-16 21:33:42 +00:00
Skillz4Killz
80d251b6a7
fix: yuzu improvement
2022-03-16 08:54:56 +00:00
LTS20050703
33405fd7d4
optionalize transformer ( #2108 )
2022-03-16 00:28:58 -04:00
Skillz4Killz
7a77831992
fix: add optionalize generic
2022-03-16 03:32:15 +00:00
Skillz4Killz
a0a1554756
refactor: typings using ReturnType ( #2105 )
...
* fix: check new types idea
* fix: type errors
* fix: new style
* fix: more cleanup
* fix: more cleanup
* fix: cleanup audit logs
* fix: cleanup stickers
* fix: cleanup integrations
* fix: more cleanup
* fix: organize into 1 place
* fix: few errors
* fix: some broken import fixes
* fix: quite a lot of fixes across the board
* fix: more fixes for broken imports
* fix: more fixes for broken imports
* fix: handler imports
* fix: all remaining import errors
* fix: more errors needing fixes
* fix: clearing up transformers
* fix: few moer types
* fix: more cleanup of extra types
* fix: fmt
* fix: cleanup discordeno file
* Nuke Base Types (#2102 )
* fix: cleanup snake stuff
* convert camelCase to snake_case (#2103 )
* fix: add camelize
* fix: finalize remaining errors
* fix: imports in test
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com >
2022-03-14 22:11:22 -04:00
Skillz4Killz
7e69f29217
fix: imports should be specific
2022-03-06 19:04:31 +00:00
Skillz4Killz
05e52ab519
fix: voice state transformer user bug
2022-02-27 22:57:48 +00:00
LTS20050703
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
ITOH
4e06ed6b2c
fix(types): SelectOption#default is not required ( #2066 )
...
* fix(types): is not required
* ddcmp
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-02-25 10:07:48 -05:00
Skillz4Killz
5bb7ed8f08
Merge branch 'main' of https://github.com/discordeno/discordeno into main
2022-02-21 05:17:13 +00:00
Skillz4Killz
0afd928650
fix: resharder bugs from testing gamer
2022-02-21 05:17:08 +00:00
LTS20050703
3cf0e11beb
fix(types): interaction transformer not transforming components ( #2052 )
2022-02-19 15:35:04 +01:00
LTS20050703
0cb2baaea2
fix(types): invitable & createTimestamp are in ThreadMetadata and not in Channel ( #2056 )
2022-02-19 15:35:03 +01:00
ITOH
cf747d5a63
feat!: update to api version 10 ( #2063 )
...
* testing stuff
* feat: update to api version 10
* broken url import
* do changes
* delete test file
2022-02-14 20:00:58 +01:00
LTS20050703
18935a1669
Fix bug in audit log transformer and helper ( #2043 )
2022-02-12 23:33:28 -05:00
LTS20050703
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
Skillz4Killz
8aaea9f339
refactor!: move dirs outside of src/ ( #2032 )
2022-02-11 09:49:53 +00:00