Commit Graph
35 Commits
Author SHA1 Message Date
LTS20050703andSkillz4Killz 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
LTS20050703andSkillz4Killz 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
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
LTS20050703 f8895fafc0 fix: createInvite doesnt pass reason (#2491) 2022-09-28 12:54:04 -04:00
LTS20050703 4de2140151 workflows/test: check plugins (#2487) 2022-09-23 13:05:09 -04:00
LTS20050703 19c89dd1c1 tests: rate limit test (#2485)
* tests: rate limit test

* tests/misc: rateLimit.test promise.all
2022-09-23 13:04:04 -04:00
LTS20050703 bf70526029 fix(plugins): errors caused by bigstring support (#2486) 2022-09-22 11:40:41 -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
e88a63770b BREAKING: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS (#2473)
* types: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS

* deno fmt

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ITOH <to@itoh.at>
2022-09-17 11:12:42 -05: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
LTS20050703andSkillz4Killz d39abe147f plugins/permissions: check channel type and implicit permissions (#2468)
* plugins/permissions: check channel type and implicit permissions

* deno fmt

* refactor: plugins/permissions

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-15 11:22:52 -04:00
LTS20050703 9426f4e2de fix(plugins): type errors (#2472)
* fix plugins

* deno fmt
2022-09-15 10:45:54 -04: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 1bbb992a71 fix: enableValidationPlugin should return whatever it's passed in (#2463) 2022-09-13 14:43:18 -05:00
LTS20050703 150b5d45dd Release: Discordeno@15.0.0 (#2462) 2022-09-12 11:56:07 -05:00
LTS20050703 b4a823aba1 feat: Validation Plugin (#2451)
* Plugins/Permissions: FIX PARITY ISSUES
What is parity issues? Parity issues are files that exist but structured one way in the base/vanilla discordeno library, and structured another way in the permisison plugin.

* deno fmt

* plugins/permissions: nuke validations

* plugins/permissions VALIDATIONS -> plugins/validations

* plugins/validations: slash commands max 4000 chars

* fix module not found
2022-09-12 08:57:59 -05:00
LTS20050703andSkillz4Killz 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 b502c14ffb feat: add union type DiscordConnectionServices (#2458)
* add enum DiscordConnectionServices

* DiscordConnectionServices enum -> union type
2022-09-12 08:49:24 -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 08c9f2395b chore: Add note about missing webhook following source (#2460) 2022-09-11 20:08:40 -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
LTS20050703 4aba5ff72f plugins: fix errors (#2446) 2022-09-09 13:10:16 -05:00
LTS20050703andSkillz4Killz 297d5dbb28 add resume_gateway_url to DiscordReady (#2415)
* add resume_gateway_url to DiscordReady

* gateway: resumeGatewayUrl

* gateway: implement resumeGatewayUrl handle for shard

* formatting

* gateway: fix websocket url

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-08 12:47:01 -04:00
LTS20050703andSkillz4Killz 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
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
LTS20050703andSkillz4Killz 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
LTS20050703andSkillz4Killz b90b32de9e BREAKING: add applicationCommandBadge flag and fix name of GatewayMessageContent (#2419)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-04 11:32:26 -05:00
LTS20050703andSkillz4Killz 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
LTS20050703 e1afec3da9 ci: github workflows tests: --jobs -> --parallel (#2428) 2022-09-04 11:29:56 -05: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 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
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
LTS20050703andSkillz4Killz 1ea2a81363 Fix cache plugin doesn't update voice state update (#2388)
* Fix cache plugin doesn't update voice state update

* fix putting fix in wrong file

* deno fmt

* delete voice state

* deno fmt

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-08-25 11:43:33 -04:00