Commit Graph

66 Commits

Author SHA1 Message Date
LTS20050703
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
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
Skillz4Killz
26803a33af fix: cache members 2022-08-30 17:41:02 +00:00
Skillz4Killz
3100f2cb66 fix: fmt 2022-08-25 18:39:20 +00:00
Yaikava
de8f5215ca permissions.ts - fix highest role (#2393) 2022-08-25 14:39:00 -04:00
LTS20050703
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
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
c8223b5768 fix: forgot to push this 2022-06-17 21:20:10 +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
fd97bb7f50 fmt 2022-06-08 11:42:08 +00:00
Skillz4Killz
226a1e0c80 fix(cache): cache plugin using old gateway model 2022-06-04 20:47:10 +00: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
d7883855ec refactor(.github,README,gateway,plugins/fileloader,tests,types)!: make intent calculation manual
This changes the calculation of intents to be manual to the dev.
This is to improve overall consistency of our code base, also it is not a big drawback for users since intents are usually done once and then never (seldom) touched again.
2022-05-24 23:16:01 +02:00
Skillz4Killz
21cb40eaa2 fix: add missing exports to helpers plugin 2022-05-18 16:17:45 +00:00
Skillz4Killz
0258722f24 fix: return type of helpers plugin 2022-05-18 16:12:51 +00:00
Skillz4Killz
3f1c924b9c fix: permissions plugin should return valid type 2022-05-18 16:04:02 +00:00
LTS20050703
73e34b262d refactor(plugins/permissions)!: rename createForumPosts to createForumPost (#2220)
* deno fmt

* fix: plugins/permissions: channels/forums/createForumPosts
2022-05-14 22:02:02 +02:00
LTS20050703
c53aad2ea8 style: deno fmt (#2219) 2022-05-14 12:03:17 +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
Skillz4Killz
c6966c38ff fix: 3/7 day archive dont need boost. Closes #2188 2022-05-08 14:53:09 +00:00
Skillz4Killz
f532e50b1b fix: fmt 2022-04-11 21:01:33 +00:00
Skillz4Killz
fd6b11a66b fix: add sendStartNotification to stages. Closes #2152 2022-03-31 14:01:25 +00:00
Skillz4Killz
23357c78a5 Merge branch 'main' of https://github.com/discordeno/discordeno into main 2022-03-31 13:50:25 +00:00
Skillz4Killz
167bc73d75 fix: removes store channels 2022-03-31 13:50:19 +00: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
4bdd8330d0 feat(plugins): validate interaction response title (#2130)
Modal titles must have a length between 1 and 45 characters.
This adds a check to the permissions plugin.

Reference: https://github.com/discord/discord-api-docs/pull/4649
2022-03-24 19:04:23 -04:00
ITOH
75eb35df6e fix(plugins): createApplicationCommand checks 2022-03-24 14:34:26 +01:00
ITOH
b0ecdf1a62 fix(plugins): createApplicationCommand validation 2022-03-24 14:29:01 +01:00
ITOH
c830055a52 style: run deno fmt 2022-03-23 21:23:27 +01:00
Skillz4Killz
60a7ba5c11 fix: add modifyRolePositions 2022-03-22 21:51:30 +00:00
ITOH
c9a9cdc500 feat(plugins): better typing (#2120) 2022-03-21 22:13:15 -04:00
Skillz4Killz
90d5744e14 fix: typo conditional. Thanks itoh! 2022-03-21 11:09:16 +00:00
Skillz4Killz
b22e7f954f fix: select menu placholder max length 150. Closes #2085 2022-03-21 11:08:15 +00:00
Skillz4Killz
ff421688f1 fix: add perm checking for timeouts. Closes #1972 2022-03-21 11:04:58 +00:00
Skillz4Killz
1d1e103a31 fix: temp solution for editWebhook cache override 2022-03-21 08:24:54 +00:00
Skillz4Killz
307a9a83fe fix: edit webhook perm checking 2022-03-21 08:24:37 +00:00
Skillz4Killz
0769b442c1 fix: view channel required for joining. Closes #2009 2022-03-20 15:27:09 +00:00
Skillz4Killz
1af931f900 fix: community requires admin closes #2088 2022-03-20 14:00:49 +00:00
Skillz4Killz
d7da491ae2 fix: dumb class binding error 2022-03-20 13:12:05 +00:00
Skillz4Killz
a9f0bcc911 fix: use function not => to prevent bidn issue 2022-03-20 12:42:51 +00:00
Skillz4Killz
53a811f8d7 fix: omg this fmt 2022-03-20 12:35:25 +00:00
Skillz4Killz
751f719a87 fix: helper plugin errors 2022-03-20 12:17:42 +00:00
Skillz4Killz
9afa1b84ef fix: guild feature error in perms plugin 2022-03-20 12:10:20 +00:00
Skillz4Killz
554b92b2ff fix: any remaining type errors 2022-03-20 09:15:22 +00:00
Yuzu
81678fbc22 fix: optionalize recursive type works with nested objects and arrays (#2115)
* fix: get rid of type errors for now

* fix: only 6 type errors left
2022-03-19 05:12:37 -04:00
Skillz4Killz
cf13780765 fix: fmt 2022-03-18 04:20:14 +00:00