Skillz4Killz and Dorian Oszczęda
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
Ean Milligan
a5d960b5f1
fix: getReations by removing the double URI encode ( #2438 )
2022-09-08 11:13:53 -05:00
LTS20050703 and Skillz4Killz
ec91822a73
feat:add modifyGuildMfaLevel ( #2416 )
...
* add modifyGuildMfaLevel
* plugins/permissions: editGuildMfaLevel
* tests/guilds: editGuildMfaLevel
* helpers/guilds: editGuuldMfaLevel return void
* editGuildMfaLevel return void
* Update plugins/permissions/src/guilds/editGuildMfaLevel.ts
* tests/guilds: fix editGuildMfaLevel
CACHED_COMMUNITY_GUILD_ID is not owned by the bot
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-09-08 11:13:19 -05:00
Skillz4Killz
9c1b47c4a5
fix: broken typings in automod
2022-09-05 17:59:01 +00: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 and Skillz4Killz
792c48b498
BREAKING: update channel types names ( #2417 )
...
* update channel types names
* fix ChannelTypes enum changes
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-09-04 12:01:17 -05:00
LTS20050703 and Skillz4Killz
43393f1a5d
BREAKING: banMember deleteMessageDays > deleteMessageSeconds ( #2422 )
...
* add ban delete_message_seconds and remove reason
* test: ban member and delete messages
* helpers/banMember: nuke deleteMessageDays
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-09-04 11:31:36 -05:00
Skillz4Killz
8800beb684
fix: type issues
2022-09-03 17:01:13 +00:00
LTS20050703
43a54e1403
feat: add application_commands to audit log structure ( #2421 )
...
* add application_commands to audit log structure
* helpers/getAuditLog: add applicationCommands
2022-09-03 12:38:34 -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
LTS20050703
46e1597d74
update forum channel type ( #2423 )
...
* update forum channel type
* add forum stuff to editChannel
* plugins/permissions: createChannel
* Prefix ForumTag, DefaultReactionEmoji with Discord
2022-09-02 11:16:28 -05:00
Dorian Oszczęda
ddf2046554
fix: Add missing properties to application command create/update payloads. ( #2397 )
...
* misc: Add `descriptionLocalizations` to properties omitted for context commands.
* style: 'option/s' -> 'command/s'.
* fix: Add missing properties to payloads.
2022-08-28 14:12:41 -04:00
Skillz4Killz
8c4c51e8f1
fix: fmt
2022-08-28 11:34:38 +00:00
Skillz4Killz
8c5fcbfefa
fix: double Invite declarations
2022-08-28 11:29:25 +00:00
Skillz4Killz
d0b0884b89
fix: broken unit tests
2022-08-28 11:24:05 +00:00
Skillz4Killz
e064aa2aab
fix: fmt
2022-08-28 11:19:13 +00:00
Skillz4Killz
9d6cc2f210
Merge branch 'main' of https://github.com/discordeno/discordeno into main
2022-08-28 11:18:53 +00:00
Skillz4Killz
94d5b20339
fix: description is not required for ctx cmds
2022-08-28 11:17:43 +00:00
Dorian Oszczęda and Skillz4Killz
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
88c0835953
fix: automod reason support Closes #2334
2022-08-25 18:02:03 +00:00
Skillz4Killz
97c344783b
fix: get invite helper. Closes #2389
2022-08-25 15:21:07 +00:00
Skillz4Killz
359db97a39
fix: pass tests
2022-08-24 05:25:00 +00:00
Skillz4Killz
8282af16ac
fix: type error
2022-08-23 15:12:26 +00:00
Skillz4Killz
e843b72edb
fix: type errors
2022-08-23 14:56:48 +00:00
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
LTS20050703
c68d95bc90
Image Size 4096 ( #2302 )
...
* Image Size 4096
* deno fmt
2022-06-16 12:04:10 -04:00
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
3af25bcc1d
BREAKING(helpers): editBotNickname can return undefined
2022-05-31 14:21:16 +00:00
Skillz4Killz
9473a1d798
BREAKING(helpers): getWebhook can return undefined
2022-05-31 13:35:28 +00:00
Skillz4Killz
9b609a58d5
BREAKING(helpers): getUser can return undefined
2022-05-31 12:47:56 +00:00
Skillz4Killz
6b4160e066
BREAKING(helpers): getMember user isnt in server
2022-05-30 22:18:38 +00:00
Skillz4Killz
695fb7a4bc
BREAKING(helpers): getDmChannel if no dm perms
2022-05-30 22:18:08 +00:00
Skillz4Killz
e05e409d76
BREAKING(helper): fix getBan if not banned
2022-05-30 22:17:37 +00:00
Skillz4Killz
099d4f4d49
fix(tests): migrate scheduled events tests
2022-05-30 14:48:23 +00:00
Skillz4Killz
e34a265ba4
fix(test): migrate message related unit tests
2022-05-29 17:56:41 +00:00
Skillz4Killz
36c3b15f2b
fix: deno fmt is trash
2022-05-29 15:10:20 +00:00
Skillz4Killz
5e492f0d49
fix(helpers): editGuild options spread out
2022-05-29 14:54:54 +00:00
Skillz4Killz
05ba25b23f
fix(helpers): getGuild bug on guild doesnt exist
2022-05-29 14:54:22 +00:00
Skillz4Killz
0aff36afbe
fix(utils): add hasProperty back. 2x faster than Reflect.has
2022-05-28 13:39:46 +00:00
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
ITOH
b469c98527
refactor(gateway,types,util)!: finalize gateway code ( #2241 )
...
* push some cursed stuff
* bucket
* fix bugs and hack start ordered
* some management improvements
* more gw stuff
* f
* rename manager to gateway
* remove basic thing
* remove old stuff
* f
* fix imp
* fixes
2022-05-25 22:27:49 +02:00
ITOH
b00504ce07
perf(plugins/helpers,rest,site,template)!: uppercase rest methods ( #2252 )
...
* perf(plugins/helpers,rest,site,template)!: uppercase rest methods
There is no need for us to pass the methods in lower case and then use the `toUpperCase()` method everywhere. Therefore this PR changes every lowercase method to be uppercase (eg. `"get"` => `"GET"`).
* template is old version
2022-05-25 20:45:51 +02:00
ITOH
1edb3c2110
refactor(bot,plugins/helpers,rest,util)!: improve rest route handling ( #2248 )
...
* refactor(bot,helpers,plugins,rest,util)!: improve rest route handling
- rename endpoints constant to routes
- simplify routes code by removing bases and function calls
- url query params can now be passed to the route functions
* style: deno fmt
* fix base stuff
* suggestions
2022-05-25 20:35:25 +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
凱恩Kane
f7f4b7c384
targetApplicationId missing ( #2244 )
2022-05-25 09:48:57 -04: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