Lars_und_so
df59106121
fix for #2678 exporting autoModerationRule ( #2679 )
2022-12-07 20:09:06 -06:00
Awesome Stickz
788bd85218
fix: add members collection to guild in guild transformer if available ( #2569 )
2022-11-01 14:56:38 -05:00
Andreas Fink
5808179369
feat(transformers,types): add DEVELOPER_SUPPORT_SERVER feature ( fixes #2550 ) ( #2552 )
2022-10-24 15:34:48 -05:00
Awesome Stickz
cd28eca500
feat: allow bigint or number to be passed in toggles classes too and not only the object ( #2539 )
2022-10-22 07:29:05 -05:00
Skillz4Killz
52c83cc1fb
fix: guild feature
2022-10-08 03:39:57 +00:00
Skillz4Killz
4c22c0e95a
perf: Much faster features
2022-10-08 03:38:31 +00:00
LTS20050703
357376b954
BREAKING(types): add animated banner to guild features ( #2489 )
...
* types/shared: add animated banner to guild features
* tranformers/toggles: getter for guild features
2022-09-30 08:31:20 -05:00
凱恩Kane
f38373e0fb
fix(transformers): transform required field for InputText ( #2494 )
...
* transform required field for InputText
* missing TextInput type
2022-09-30 08:29:14 -05:00
Luan Caliel
a6ec59aad0
fix(transformers): add min and max length to text input components ( #2492 )
...
* fix: add min and max length to text input components
* docs: add dots and commas
* fix: add semicolon
* fix: add semicolon
* fix: add min and max input length to transform component
2022-09-30 08:28:40 -05:00
LTS20050703
82653ec0d8
feat: add nonce to sendMessage options ( #2459 )
...
* add nonce to sendMessage options
* add nonce to (Discordeno)Message
2022-09-12 08:48:38 -05:00
LTS20050703
67e137fcdc
feat(types): add InvitesDisabled to GuildFeatures ( #2439 )
...
* types/shared: add InvitesDisabled to GuildFeatures
* add AutoModeration, InvitesDisabled to GuildToggle
* GuildToggles: add getters
* deno fmt (1.25.2)
* jsdoc comments
2022-09-11 12:05:17 -05:00
Dorian Oszczęda
ec6b7459bd
fix: Invalid HTTP method in upserting commands. ( #2448 )
...
* fix: Export of `ApplicationCommandOptionChoice`.
* fix: Invalid HTTP method for upserting application commands.
* fmt: Run Deno formatter.
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-09-09 19:43:32 -05:00
LTS20050703
4aba5ff72f
plugins: fix errors ( #2446 )
2022-09-09 13:10:16 -05:00
Skillz4Killz
bbbe21ebf2
BREAKING: add docs ( #2442 )
...
* refactor(helpers): Organise functions. (#2425 )
* refactor: Move stage instance helper functions into `/stages` subdirectory.
* refactor: Move `followChannel.ts` to `/announcements` subdirectory.
* refactor: Move `updateVoiceState.ts` to `/guilds` directory.
* refactor: Move `getPins.ts` to `/messages` directory.
* refactor: Move voice-related helper functions into `/voice` subdirectory.
* refactor: Rename `/scheduledEvents` to `/events`.
* refactor: Move widget-related helper functions into `/widgets` subdirectory.
* refactor: Make `/integrations` a subdirectory of `/guilds`.
* refactor: Move helper functions related to interaction responses into the `/responses` subdirectory.
* refactor: Move `verifySignature.ts` to `/util` directory.
* refactor: Move `getChannelInvites.ts` to `/channels` directory.
* refactor: Make `/invites` a subdirectory of `/guilds`.
* refactor: Move reaction-related helper functions into the /reactions subdirectory.
* refactor: Move `getApplicationInfo.ts` into the `/misc` directory.
* refactor: Move voice-related helper functions from `/voice` to `/guilds/voice`.
* fix: Update and simplify type imports.
* refactor!(helpers): Rename helpers to match Discord API. Create a 1:1 helper-to-endpoint correspondence. (#2427 )
* refactor: Move stage instance helper functions into `/stages` subdirectory.
* refactor: Move `followChannel.ts` to `/announcements` subdirectory.
* refactor: Move `updateVoiceState.ts` to `/guilds` directory.
* refactor: Move `getPins.ts` to `/messages` directory.
* refactor: Move voice-related helper functions into `/voice` subdirectory.
* refactor: Rename `/scheduledEvents` to `/events`.
* refactor: Move widget-related helper functions into `/widgets` subdirectory.
* refactor: Make `/integrations` a subdirectory of `/guilds`.
* refactor: Move helper functions related to interaction responses into the `/responses` subdirectory.
* refactor: Move `verifySignature.ts` to `/util` directory.
* refactor: Move `getChannelInvites.ts` to `/channels` directory.
* refactor: Make `/invites` a subdirectory of `/guilds`.
* refactor: Move reaction-related helper functions into the /reactions subdirectory.
* refactor: Move `getApplicationInfo.ts` into the `/misc` directory.
* refactor: Move voice-related helper functions from `/voice` to `/guilds/voice`.
* fix: Update and simplify type imports.
* refactor: Rename `followChannel` -> `followAnnouncementChannel`.
* refactor: Rename `createForumPost` -> `startForumThread`.
* refactor: Normalise keyword `update` -> `edit`.
* refactor: Rename `addToThread` -> `addThreadMember`.
* refactor: Rename `ChannelOverwrite` -> `ChannelPermissions`.
* refactor: Rename `startTyping` -> `triggerTypingIndicator`.
* refactor: Rename `swapChannels` -> `editChannelPositions`.
* refactor: Rename `getPins` -> `getPinnedMessages`.
* refactor: Rename `publish` -> `crosspost`.
* refactor: Normalise keyword `modify` -> `edit`.
* refactor: Normalise naming.
* fix: Imports.
* style: Remove empty object.
* refactor: Split `getArchivedThreads` into three files for public, private and private joined threads.
* refactor: Split `getApplicationCommands` into two files, for guild and global commands respectively.
* refactor: Split `getApplicationCommand` into two files, for guild and global commands respectively.
* fmt: Organise imports.
* misc: Include application command reverse transformer.
* misc: Make ordering of fields match up with the Discord API.
* fix: Add missing payload properties.
* refactor: Split `createApplicationCommand` into two files, for guild and global commands respectively.
* refactor: Split `upsertApplicationCommand` into two files, for guild and global commands respectively.
* refactor: Split `upsertApplicationCommands` into two files, for guild and global commands respectively.
* fix: Update exports.
* refactor: Split `deleteApplicationCommand` into two files, for guild and global commands respectively.
* fix: Add missing exports.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* feat: Create `getInteractionResponse.ts`.
* refactor: Matching API: `InteractionResponse` -> `FollowupMessage`.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Remove `/followups` directory in favour of newly created files in `/responses`.
* refactor: Rename `bot`/`self` -> `own`, `others` -> `user`.
* refactor: Split function into `deleteOwnReaction` and `deleteUserReaction`.
* refactor: Reduce code duplication in processing reaction string.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Rename function name.
* misc: Add aliases to functions to reduce breakage.
* refactor: Rename `startForumThread` -> `createForumThread`.
* misc: Move types from helper file to `/types` and create transformer.
* fix: Imports.
* style: Rename parameter `command` -> `payload`.
* feat: Create interaction response transformer.
* misc: Adapt code to use the interaction response transformer.
* misc: Adapt code to use interaction response transformer.
* refactor: Re-include the keyword `Override` in the file + function names.
* refactor: Rename `updateVoiceState` -> `editVoiceState` for consistency reasons.
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* BREAKING: docs(helpers): Document helper functions. (#2437 )
* refactor: Move stage instance helper functions into `/stages` subdirectory.
* refactor: Move `followChannel.ts` to `/announcements` subdirectory.
* refactor: Move `updateVoiceState.ts` to `/guilds` directory.
* refactor: Move `getPins.ts` to `/messages` directory.
* refactor: Move voice-related helper functions into `/voice` subdirectory.
* refactor: Rename `/scheduledEvents` to `/events`.
* refactor: Move widget-related helper functions into `/widgets` subdirectory.
* refactor: Make `/integrations` a subdirectory of `/guilds`.
* refactor: Move helper functions related to interaction responses into the `/responses` subdirectory.
* refactor: Move `verifySignature.ts` to `/util` directory.
* refactor: Move `getChannelInvites.ts` to `/channels` directory.
* refactor: Make `/invites` a subdirectory of `/guilds`.
* refactor: Move reaction-related helper functions into the /reactions subdirectory.
* refactor: Move `getApplicationInfo.ts` into the `/misc` directory.
* refactor: Move voice-related helper functions from `/voice` to `/guilds/voice`.
* fix: Update and simplify type imports.
* refactor: Rename `followChannel` -> `followAnnouncementChannel`.
* refactor: Rename `createForumPost` -> `startForumThread`.
* refactor: Normalise keyword `update` -> `edit`.
* refactor: Rename `addToThread` -> `addThreadMember`.
* refactor: Rename `ChannelOverwrite` -> `ChannelPermissions`.
* refactor: Rename `startTyping` -> `triggerTypingIndicator`.
* refactor: Rename `swapChannels` -> `editChannelPositions`.
* refactor: Rename `getPins` -> `getPinnedMessages`.
* refactor: Rename `publish` -> `crosspost`.
* refactor: Normalise keyword `modify` -> `edit`.
* refactor: Normalise naming.
* fix: Imports.
* style: Remove empty object.
* refactor: Split `getArchivedThreads` into three files for public, private and private joined threads.
* refactor: Split `getApplicationCommands` into two files, for guild and global commands respectively.
* refactor: Split `getApplicationCommand` into two files, for guild and global commands respectively.
* fmt: Organise imports.
* misc: Include application command reverse transformer.
* misc: Make ordering of fields match up with the Discord API.
* fix: Add missing payload properties.
* refactor: Split `createApplicationCommand` into two files, for guild and global commands respectively.
* refactor: Split `upsertApplicationCommand` into two files, for guild and global commands respectively.
* refactor: Split `upsertApplicationCommands` into two files, for guild and global commands respectively.
* fix: Update exports.
* refactor: Split `deleteApplicationCommand` into two files, for guild and global commands respectively.
* fix: Add missing exports.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* feat: Create `getInteractionResponse.ts`.
* refactor: Matching API: `InteractionResponse` -> `FollowupMessage`.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Remove `/followups` directory in favour of newly created files in `/responses`.
* refactor: Rename `bot`/`self` -> `own`, `others` -> `user`.
* refactor: Split function into `deleteOwnReaction` and `deleteUserReaction`.
* refactor: Reduce code duplication in processing reaction string.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Rename function name.
* misc: Add aliases to functions to reduce breakage.
* refactor: Rename `startForumThread` -> `createForumThread`.
* misc: Move types from helper file to `/types` and create transformer.
* fix: Imports.
* style: Rename parameter `command` -> `payload`.
* feat: Create interaction response transformer.
* misc: Adapt code to use the interaction response transformer.
* misc: Adapt code to use interaction response transformer.
* docs: Document announcement channel helpers.
* docs: Document forum channel helpers.
* docs: Document stage instance helpers.
* misc: Update wording.
* docs: Document thread channel helpers.
* refactor: Re-include the keyword `Override` in the file + function names.
* refactor: Rename `updateVoiceState` -> `editVoiceState` for consistency reasons.
* docs: Document channel helpers.
* docs: Use `parameters` instead of `options` for descriptions.
* docs: Document guild discovery helpers.
* docs: Document emoji helpers.
* docs: Add missing information about which gateway events are fired.
* docs: Document auto moderation helpers.
* docs: Document scheduled event helpers.
* docs: Document integration helpers.
* docs: Document invite helpers.
* refactor: Rename `editWidget` -> `editWidgetSettings`.
* docs: Document guild widget helpers.
* docs: 'event' -> 'gateway event'.
* refactor: Rename `getAuditLogs` -> `getAuditLog`.
* docs: Document guild helpers.
* refactor: Rename `upsert*ApplicationCommand` -> `edit*ApplicationCommand`.
* docs: Document application command helpers.
* docs: Improve consistency in indentation.
* docs: Document interaction response + follow-up message helpers.
* docs: Document gateway event firings for endpoints.
* refactor: Delete `editBotNickname` due to being a subset of `editMember`.
* docs: Fix inconsistency.
* docs: Document member helpers.
* docs: Document reaction helpers.
* docs: Improve consistency.
* docs: Document message helpers.
* docs: Document role helpers.
* docs: Document guild template helpers.
* docs: Fix incorrect gateway event.
* refactor: Rename `sendWebhookMessage` -> `executeWebhook`.
* docs: Document webhook helpers.
* docs: Document voice helpers.
* fmt: Run Deno formatter.
* docs: Improve consistency.
* refactor: Rename the `/widgets` directory to `/widget`.
* fmt: Run Deno formatter.
* misc: Re-add the deleted `editBotNickname()` helper. (#2443 )
* refactor: Move stage instance helper functions into `/stages` subdirectory.
* refactor: Move `followChannel.ts` to `/announcements` subdirectory.
* refactor: Move `updateVoiceState.ts` to `/guilds` directory.
* refactor: Move `getPins.ts` to `/messages` directory.
* refactor: Move voice-related helper functions into `/voice` subdirectory.
* refactor: Rename `/scheduledEvents` to `/events`.
* refactor: Move widget-related helper functions into `/widgets` subdirectory.
* refactor: Make `/integrations` a subdirectory of `/guilds`.
* refactor: Move helper functions related to interaction responses into the `/responses` subdirectory.
* refactor: Move `verifySignature.ts` to `/util` directory.
* refactor: Move `getChannelInvites.ts` to `/channels` directory.
* refactor: Make `/invites` a subdirectory of `/guilds`.
* refactor: Move reaction-related helper functions into the /reactions subdirectory.
* refactor: Move `getApplicationInfo.ts` into the `/misc` directory.
* refactor: Move voice-related helper functions from `/voice` to `/guilds/voice`.
* fix: Update and simplify type imports.
* refactor: Rename `followChannel` -> `followAnnouncementChannel`.
* refactor: Rename `createForumPost` -> `startForumThread`.
* refactor: Normalise keyword `update` -> `edit`.
* refactor: Rename `addToThread` -> `addThreadMember`.
* refactor: Rename `ChannelOverwrite` -> `ChannelPermissions`.
* refactor: Rename `startTyping` -> `triggerTypingIndicator`.
* refactor: Rename `swapChannels` -> `editChannelPositions`.
* refactor: Rename `getPins` -> `getPinnedMessages`.
* refactor: Rename `publish` -> `crosspost`.
* refactor: Normalise keyword `modify` -> `edit`.
* refactor: Normalise naming.
* fix: Imports.
* style: Remove empty object.
* refactor: Split `getArchivedThreads` into three files for public, private and private joined threads.
* refactor: Split `getApplicationCommands` into two files, for guild and global commands respectively.
* refactor: Split `getApplicationCommand` into two files, for guild and global commands respectively.
* fmt: Organise imports.
* misc: Include application command reverse transformer.
* misc: Make ordering of fields match up with the Discord API.
* fix: Add missing payload properties.
* refactor: Split `createApplicationCommand` into two files, for guild and global commands respectively.
* refactor: Split `upsertApplicationCommand` into two files, for guild and global commands respectively.
* refactor: Split `upsertApplicationCommands` into two files, for guild and global commands respectively.
* fix: Update exports.
* refactor: Split `deleteApplicationCommand` into two files, for guild and global commands respectively.
* fix: Add missing exports.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* feat: Create `getInteractionResponse.ts`.
* refactor: Matching API: `InteractionResponse` -> `FollowupMessage`.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Remove `/followups` directory in favour of newly created files in `/responses`.
* refactor: Rename `bot`/`self` -> `own`, `others` -> `user`.
* refactor: Split function into `deleteOwnReaction` and `deleteUserReaction`.
* refactor: Reduce code duplication in processing reaction string.
* refactor: Separate file into two to make 1 file correspond to 1 endpoint.
* refactor: Rename function name.
* misc: Add aliases to functions to reduce breakage.
* refactor: Rename `startForumThread` -> `createForumThread`.
* misc: Move types from helper file to `/types` and create transformer.
* fix: Imports.
* style: Rename parameter `command` -> `payload`.
* feat: Create interaction response transformer.
* misc: Adapt code to use the interaction response transformer.
* misc: Adapt code to use interaction response transformer.
* docs: Document announcement channel helpers.
* docs: Document forum channel helpers.
* docs: Document stage instance helpers.
* misc: Update wording.
* docs: Document thread channel helpers.
* refactor: Re-include the keyword `Override` in the file + function names.
* refactor: Rename `updateVoiceState` -> `editVoiceState` for consistency reasons.
* docs: Document channel helpers.
* docs: Use `parameters` instead of `options` for descriptions.
* docs: Document guild discovery helpers.
* docs: Document emoji helpers.
* docs: Add missing information about which gateway events are fired.
* docs: Document auto moderation helpers.
* docs: Document scheduled event helpers.
* docs: Document integration helpers.
* docs: Document invite helpers.
* refactor: Rename `editWidget` -> `editWidgetSettings`.
* docs: Document guild widget helpers.
* docs: 'event' -> 'gateway event'.
* refactor: Rename `getAuditLogs` -> `getAuditLog`.
* docs: Document guild helpers.
* refactor: Rename `upsert*ApplicationCommand` -> `edit*ApplicationCommand`.
* docs: Document application command helpers.
* docs: Improve consistency in indentation.
* docs: Document interaction response + follow-up message helpers.
* docs: Document gateway event firings for endpoints.
* refactor: Delete `editBotNickname` due to being a subset of `editMember`.
* docs: Fix inconsistency.
* docs: Document member helpers.
* docs: Document reaction helpers.
* docs: Improve consistency.
* docs: Document message helpers.
* docs: Document role helpers.
* docs: Document guild template helpers.
* docs: Fix incorrect gateway event.
* refactor: Rename `sendWebhookMessage` -> `executeWebhook`.
* docs: Document webhook helpers.
* docs: Document voice helpers.
* fmt: Run Deno formatter.
* docs: Improve consistency.
* refactor: Rename the `/widgets` directory to `/widget`.
* fmt: Run Deno formatter.
* feat: Re-add `editBotNickname.ts`.
* Update helpers/members/editBotNickname.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* fix: tests
* fix: bot member tests
* fix: remove submode
* fix: edit bot member returns full member
Co-authored-by: Dorian Oszczęda <vxern@wordcollector.co.uk >
2022-09-08 20:12:34 -05:00
LTS20050703
3a95a1beda
feat: Adds mention limits in automod ( #2414 )
...
* Adds mention limits in automod
* add mention limit to automod helper, transformer
* helpers/automod: send mention_total_limit to discord
2022-09-04 12:02:42 -05:00
LTS20050703
9955e109d6
feat: Add scopes field to integration structure ( #2420 )
...
* Add scopes field to integration structure
* transformers/integration: add scopes
2022-09-03 12:36:58 -04:00
LTS20050703
3518ed1e18
feat: add limit for attachment description ( #2418 )
...
* add limit for attachment description
* bot.transformers.reverse.attachment
* plugins/permissions: validate attachments
2022-09-03 12:35:41 -04:00
Dorian Oszczęda
bb63f2f7e8
fix: Add missing user property. ( #2398 )
2022-08-29 10:47:07 -04:00
Dorian Oszczęda
c9659bca4c
feat!: Add return types to helper functions. ( #2395 )
...
* feat: Add return types to forum channel helpers.
* fix: Use Discord-defined property names. Add `flags` property.
* feat: Add return types to thread channel helpers.
* feat: Add return types to channel helpers.
* feat: Add return types to server discovery helpers.
* misc!: Consistency: 'remove' -> 'delete'.
* misc!: Add `get` keyword to function and file name.
* feat: Add return types to emoji helpers.
* misc!: Remove unused `bot` parameter. Capitalise 'URL'.
* feat: Add return types to guild automod helpers.
* feat: Add return types to guild scheduled event helpers.
* misc!: Consistency: Rename `emojiURL` to `getEmojiURL`.
* feat: Add return types to guild helpers.
* misc!: Consistency: Add 'get' keyword to function and file names.
* feat: Add return types to invite helpers.
* feat: Add return types to integration helpers.
* feat: Add return types to application command helpers.
* feat: Add return types to followup message helpers.
* feat: Add return types to interaction response helpers.
* feat: Add return type to `createInvite()`.
* feat: Add return types to member helpers.
* misc!: Consistency: Add 'get' keyword to function and file names.
* feat: Add return types to message helpers.
* misc!: Consistency: 'remove' -> 'delete'.
* fix: Use `slice()` to prevent unwanted side effects.
* feat: Add return types to miscellaneous helpers.
* misc!: Consistency: Add 'get' keyword to function and file names.
* feat: Add return types to role helpers.
* feat: Add return types to oauth helpers.
* feat: Add return types to template helpers.
* misc!: Consistency: Add 'guild' keyword to name.
* feat: Add return types to voice helpers.
* fix: Name function correctly.
* feat: Add return types to webhook helpers.
* misc!: Consistency: Rename `sendWebhook` to `sendWebhookMessage`.
* misc: Update exports.
* fix: Imports.
* fix: Change return collection key type from `string` to `bigint`. Remove redundant code.
* misc: Remove `undefined` from `runMethod()` return type.
* style: Remove redundant types.
* style: Rename endpoint call result variables to `result` and `results`.
* misc: Reintroduce `bot` as first parameter.
* misc: Adapt tests to changes made to helpers.
* fix: Object being transformed twice.
* style: Improve naming consistency of remaining files.
* misc: `bigint` -> `number`.
* style: Remove explicit `undefined` return.
* style: Remove `void` operator in favour of generic type.
* misc: Add missing `await` keyword.
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* style: Make `reason` property optional instead of `undefined`-able.
* misc: Write out properties manually instead of using the spread operator.
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-08-28 07:17:08 -04:00
Skillz4Killz
270116a474
BREAKING: last remaining major break
2022-08-25 18:37:09 +00:00
Skillz4Killz
e843b72edb
fix: type errors
2022-08-23 14:56:48 +00:00
Jonathan Ho
34d7a47f24
feat: reverse transformers ( #2387 )
...
* merged change
* deno fmt
2022-08-23 10:18:30 -04:00
meister03
aca0e3cf1b
Merge Dev into Main ( #2345 )
...
* Simplify SfetchMembers (#2339 )
Co-authored-by: meister03
* Create leaveVoiceChannel.ts (#2342 )
* Update editFollowupMessage.ts (#2344 )
* Update editInteractionResponse.ts (#2343 )
* Update editMessage.ts (#2341 )
* Update calculateShardId.ts
Fix wrong shardId calculations
* Add Role Icon to Edit (#2346 )
Co-authored-by: meister03
* Add mix max length (#2347 )
Co-authored-by: meister03
* style: deno fmt
* Fix Disabled Options (#2368 )
Co-authored-by: meister03 <meisterpi@gmail.com >
* Add app_permissions (#2369 )
Co-authored-by: meister03 <meisterpi@gmail.com >
* thread_id instead of threadId (#2378 )
Co-authored-by: Veeti K <veeti@veetik.com >
* feat: Create `ApplicationCommandFlags` enumerator. (#2384 )
Co-authored-by: vxern <vxern@wordcollector.co.uk >
* Small Changes in a bulk pr to close the issues (#2370 )
* Initial Commit
* Close #2364
* Add preset whitelist to automod #2356 -> Resolve Issue
* Close [api-docs] AutoMod message intent updates (#5083 ) #2330
* Breaking Channge | [api-docs] Update message type names (#5093 )
* message.interaction.name changed attitude | [api-docs] Update Change_Log.md #2333
* #2333 also closes #2316
* Clarify 45 chars length | Add those on permission plugins | [api-docs] text input label has max 45 characters (#4689 ) #2137
* Clarify webhook naming restrictions (#4625 ) #2094
* 8th August Webhook new View Channel perm | Closes #2363
* 8th August Webhook new View Channel perm | Closes #2363
* Document thread_name for execute webhook (#5007 ) #2263
* Close Update create and modify channel documentation (#4867 ) #2237
* unnecesary nullable tag in Modify Guild Member params (#5164 ) #2355
* deno fmt
* deno fmt
* Use .includefor disallowed webhook names"
* Add Missing Enums & #2367 , #2362 , #2361 , #2371 , #2372 . #2349 , #2358 , #2325 back
* deno fmt :(
Co-authored-by: meister03 <meisterpi@gmail.com >
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com >
Co-authored-by: Tomato6966 <chris.pre03@gmail.com >
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: meister03 <meisterpi@gmail.com >
Co-authored-by: Veeti K <veeti@veetik.com >
Co-authored-by: vxern <vxern@wordcollector.co.uk >
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com >
2022-08-23 08:46:01 -04:00
ITOH
03996c5f58
refactor: revert "feat: base plugin lib idea ( #2308 )" ( #2336 )
...
* Revert "feat: base plugin lib idea (#2308 )"
This reverts commit ffe7cdbc6f .
* fmt
2022-07-02 14:24:43 +01:00
Skillz4Killz
ffe7cdbc6f
feat: base plugin lib idea ( #2308 )
...
* feat: base plugin lib idea
* fix: stuff
* fmt
* fix: imports and exports
* fix: errors & tests
* fix: remove logs
2022-06-18 18:46:37 -04:00
Skillz4Killz
aa2e5131ef
fix: test local queue idea ( #2301 )
...
* fix: test local queue idea
* I HATE STUPIDEST DENO FMT
* try new error
* fix: url
* fix: with proper headers
* fix: cleanup
2022-06-17 13:01:26 -04:00
Jonathan Ho
dc1ca7c005
feat: reverse transformers ( #2305 )
...
* feat: reverse transformer
* fix: cap
* deno fmt
* refactor: change to use toggles list
* Revert "refactor: change to use toggles list"
This reverts commit 31f170f31b .
* fix: forget reverse transformer
2022-06-17 11:38:18 -04:00
LTS20050703
c68d95bc90
Image Size 4096 ( #2302 )
...
* Image Size 4096
* deno fmt
2022-06-16 12:04:10 -04:00
Skillz4Killz
91e0af3074
fix: move type to types folder
2022-06-15 17:48:41 +00:00
Skillz4Killz
ccd8506c81
Auto mod blame wolf ( #2267 )
...
* feat(meister): add automod
* fix(test); rest error with code
* fix(rest): log error nicely
* fix(test): disable benchmark test until gateway rewrite
* fix(automod): enum should start with 1
* fix(helper): better undefined handling of metadata
* fix(transfomrers): automod transformers
* fix(tests): add some automod tests
* Update types/shared.ts
Co-authored-by: meister03 <69507874+meister03@users.noreply.github.com >
* fix: changes discord made recently
* fix(fmt): i hate deno fmt but i love itoh
Co-authored-by: meister03 <69507874+meister03@users.noreply.github.com >
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com >
2022-06-15 11:25:53 -04:00
Skillz4Killz
74666ba44c
fix(transformer): partial user in presence
2022-06-15 13:37:57 +00:00
Endy
9610403b26
Made required optional for command option ( #2234 )
2022-05-22 08:39:08 -04: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
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
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
Skillz4Killz
602940e636
fix: remove archive duration toggles guild feature
2022-05-08 14:55:05 +00:00
Skillz4Killz
4f5e34d931
fix: silly fmt bugs on each deno update
2022-05-08 14:05:07 +00:00
meister03
ca2fda3315
Update activity.ts ( #2171 )
...
Fix id not a snowflake
2022-04-23 16:37:42 -04:00
LTS20050703
2cd084be86
Delete auditlogEntry.ts ( #2165 )
2022-04-15 05:20:23 -04:00
ITOH
9980856eef
refactor!: fix some spelling mistakes ( #2144 )
...
* refactor!: fix some spelling mistakes
This fixes some spelling mistakes around the code base. Note not all are fixed.
* subComponent
2022-03-31 14:16:34 +02:00
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