Jonathan Ho
50c6c6fbfb
[helper] Fix entity metadata ( #2595 )
...
* change to null if no location
* style: deno fmt
2022-11-29 10:12:23 -06:00
LTS20050703
f615e8520c
helpers: add appliedTags to editHelper options ( #2590 )
2022-11-15 14:37:03 -06:00
LTS20050703
e1ba1ae90d
delete follow up and original now support ephemeral ( #2585 )
2022-11-14 12:35:40 -06:00
LTS20050703
e995a651ce
role name must be less than 100 characters ( #2584 )
2022-11-14 12:35:02 -06:00
LTS20050703
cd5915c8b6
add new select menu components ( #2583 )
...
* add new select menu components
* fix: check for component type
2022-11-14 12:34:41 -06:00
LTS20050703 and Skillz4Killz
23897b7fcb
helpers: Add missing properties for create guild channel ( #2581 )
...
* helpers: Add missing properties for create guild channel
* Update helpers/channels/createChannel.ts
* Update helpers/channels/createChannel.ts
* Update helpers/channels/createChannel.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-11-14 12:32:41 -06:00
LTS20050703 and Skillz4Killz
84cd7165e2
types: add SortOrderTypes and default_sort_order to DiscordChannel, helpers: add defaultSortOrder to createChannel and editChannel options ( #2582 )
...
* types: add SortOrderTypes and default_sort_order to DiscordChannel
helpers: add defaultSortOrder to createChannel and editChannel options
* Update types/discord.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-11-14 12:31:45 -06:00
Dorian Oszczęda
999fdb2c45
fix: Not being able to clear member timeout. ( #2556 )
2022-10-27 09:21:40 -05:00
LTS20050703 and Skillz4Killz
a0f130db50
BREAKING: Rename getWebhooks to getGuildWebhooks ( #2465 )
...
* rename getWebhooks to getGuildWebhooks
move getChannelWebhooks from `helpers/channels` to `helpers/webhooks`
* helpers/webhooks: getWebhook -> getGuildWebhooks
* tests: fix webhook test
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-10-07 16:08:36 -05:00
LTS20050703 and Skillz4Killz
e7b3a1fff9
tests: fix stickers test ( #2497 )
...
* tests: fix stickers test
* tests: fix stickers size must be 320x320
* deno fmt
* Update README.md
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-10-02 12:24:43 -04:00
LTS20050703
39a806ff9c
fix: errors ( #2496 )
...
* fix: errors
* fix: err can be undefined
* tests: fix sticker tests
* fix: create channel require name
* fix: sticker helpers and tests
* tests: delete channel after tested guild stickers
2022-10-01 12:14:59 -04:00
Yaikava
e410da016e
🐛 - fix: bot.helpers.editFollowUpMessage - id conversion ( #2495 )
2022-09-30 17:08:08 -05:00
ITOH and Skillz4Killz
8fa7e89e8c
fix(helpers): edit interaction responses & webhook messages does not update files ( #2483 )
...
Closes : #2482
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-09-30 08:41:09 -05:00
LTS20050703
f8895fafc0
fix: createInvite doesnt pass reason ( #2491 )
2022-09-28 12:54:04 -04:00
LTS20050703
17132aaf61
feat(helpers): add stickers helpers ( #2466 )
...
* helpers: add stickers helpers
* deno fmt
* undo move getNitroStickerPack to stickers
* helpers/stickers: fix jsdocs
* plugins/permissions: check stickers permissions
* plugins/validations: validate stickers stuff
* tests: stickers unit tests
* helpers/stickers: add support for reason
* plugins/permissions: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS
* tests/stickers: delete sticker after test
createGuildSticker: add send sticker test
getGuildStickers: create another sticker then test > 1 stickers
2022-09-22 11:31:41 -04:00
LTS20050703
7198bba049
BREAKING: Remove server discovery helpers due to lack of support ( #2464 )
...
* Remove server discovery helpers due to lack of support
The helpers found under `/helpers/discovery` directory are undocumented and not for public bot use.
* delete discovery test and permission check
* deno fmt
2022-09-17 11:11:31 -05:00
Skillz4Killz
3a5bdce32d
feat: helpers support strings in args ( #2478 )
...
* fix: helpers support strings in args
* fix: fmt
2022-09-15 20:59:02 -05:00
LTS20050703
bc44a2feb1
feat(plugins/validations): sendMessage at least one prop + support stickers ( #2467 )
...
When creating a message, apps must provide a value for **at least one of** `content`, `embeds`, `sticker_ids`, `components`, or `files[n]`.
https://discord.com/developers/docs/resources/channel#create-message-jsonform-params
2022-09-14 11:53:49 -05:00
LTS20050703 and Skillz4Killz
16f109ad43
chore: WithReason type cleanup ( #2449 )
...
* type WithReason<T> = T & { reason?: string }
* deno fmt (1.25.2)
* WithReason: jsdoc comments for reason
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* deno fmt
* types: WithReason type -> WithReason interface
* Fix: Some helpers missing support for reason
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-09-12 08:52:03 -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
Dorian Oszczęda and Skillz4Killz
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
Ean Milligan
0dc0f8c52b
Fixes getReactions again. ( #2445 )
...
* Update getReactions.ts
fix it again -_-
* Bump version
2022-09-08 21:28:57 -05:00
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