LTS20050703
f615e8520c
helpers: add appliedTags to editHelper options ( #2590 )
2022-11-15 14:37:03 -06:00
Jonathan Ho
5a1887462d
Fix: typing ( #2589 )
...
* deno fmt
* import SortOrderTypes
* add bigString to reverse snowflake
2022-11-14 15:49:25 -06:00
Andreas Fink
e59ec94f55
BREAKING: fix(plugins/validations): remove bot arg from validateApplicationCommandLength, fixes #2543 ( #2553 )
2022-11-14 13:02:43 -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
RanAS
58ac893c3a
calculateBasePermissions may not correctly retrieve cached members ( #2580 )
...
* fix: this might be an oversight
* Update plugins/permissions/src/permissions.ts
* Update plugins/permissions/src/permissions.ts
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-11-14 12:26:30 -06:00
Skillz4Killz
6d17797fb1
RELEASE: 17.1.0
2022-10-22 12:42:21 +00:00
Skillz4Killz
1c2d82077f
Merge branch 'main' of https://github.com/discordeno/discordeno into main
2022-10-09 22:41:11 +00:00
Skillz4Killz
dc1ec67c46
fix: remove duplicate functions
2022-10-09 22:41:06 +00:00
Yaikava
e13342d27e
fix: permissions plugin - connect to voice ( #2504 )
2022-10-09 12:42:59 -05: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
LTS20050703
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
Skillz4Killz
b0d7a7bf28
fix: bigstring type in helpers plugin
2022-09-17 15:46:03 +00: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
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
Skillz4Killz
a49c7499cb
Update sendMessage.ts
2022-09-14 12:07:11 -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
1bbb992a71
fix: enableValidationPlugin should return whatever it's passed in ( #2463 )
2022-09-13 14:43:18 -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
Dorian Oszczęda
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
LTS20050703
4aba5ff72f
plugins: fix errors ( #2446 )
2022-09-09 13:10:16 -05:00
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