Commit Graph
19 Commits
Author SHA1 Message Date
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