Commit Graph

52 Commits

Author SHA1 Message Date
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
76e667422b fix: emoty lines 2022-06-15 17:48:57 +00:00
Skillz4Killz
decb2e23c0 BREAKING(constantts): move routes to separate file 2022-06-15 17:31:49 +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
Jonathan Ho
4263b7b787 fix: endpoint (#2296) 2022-06-15 10:25:49 -04:00
LTS20050703
4580b72d0e nuke GATEWAY_VERSION (#2293) 2022-06-15 10:12:31 -04:00
ITOH
c7eb3a9b0c hotfix: release: 13.0.0-rc45
Fixed:
 - startBot shard data calculation
 - propper handling for websocket close code 1000

Changed:
 - shard shutdown code to 3000
2022-05-29 18:22:56 +02:00
ITOH
144e651259 release: 13.0.0-rc44
Fixed:
 - lastShardId & totalShards when starting a bot without pre-set `gatewayBot` information
Removed:
 - Debug handling of close code 1000 for shards
2022-05-29 17:47:40 +02:00
Skillz4Killz
0aff36afbe fix(utils): add hasProperty back. 2x faster than Reflect.has 2022-05-28 13:39:46 +00:00
Skillz4Killz
28974f2497 fix(utils): remove hasProperty. Unused function 2022-05-28 13:28:11 +00:00
ITOH
1423df5b8d release: 13.0.0-rc43 2022-05-27 23:51:58 +02:00
ITOH
4d3a01d314 release: 13.0.0-rc42
Fixed:
 - pass intents to `gatewayConfig` in the `createBot` function
2022-05-27 23:48:18 +02:00
ITOH
b5acaf11ad release: 13.0.0-rc41
Too many changes to write changelog, please ask in the Discord.
2022-05-25 22:42:24 +02:00
ITOH
b469c98527 refactor(gateway,types,util)!: finalize gateway code (#2241)
* push some cursed stuff

* bucket

* fix bugs and hack start ordered

* some management improvements

* more gw stuff

* f

* rename manager to gateway

* remove basic thing

* remove old stuff

* f

* fix imp

* fixes
2022-05-25 22:27:49 +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
bc2f66c773 release: 13.0.0-rc40
Added:
 - `convertRestError` function so you can edit the error stack better/add additional handling
 - `Collection#forceSet` method which ignores the `maxSize` limit of the collection

Changed:
 - Intent calculation now needs to be done manually (eg. `Intents.Guilds | Intents.GuildMessages`) **BREAKING**

Fixed:
 - `ApplicationCommandOption#required` is optional
 - `createInvite` sending the wrong value for `target_application_id`
 - `editApplicationCommandPermissions` needs a bearer token to access the related endpoint **BREAKING**
 - `sendInteractionResponse` not uploading files

Removed:
 - leftover console.log in the `spawnShards` and `processGlobalQueue` functions
2022-05-25 19:22:12 +02:00
meister03
5be45f5a77 Add forceSet option for collection (#2232)
* Add forceSet option for collection

* Use .forceSet approach instead oveer-complicated set options

Co-authored-by: meister03 <root@_HOSTNAME_>
2022-05-22 08:38:41 -04:00
Skillz4Killz
92b6f27491 BREAKING: fixes shard spawning of final shard bug 2022-05-18 18:36:48 +00:00
Skillz4Killz
bc2a7ade24 fix: bot id optional on createBot 2022-05-18 16:57:50 +00:00
Skillz4Killz
332c47bdcc release: fix exports for helpers plugin 2022-05-18 16:18:46 +00:00
Skillz4Killz
c4310a5c30 release: rc37 fix plugins typings 2022-05-18 16:13:11 +00:00
Skillz4Killz
ddc0c34ffc Update constants.ts 2022-05-14 08:06:39 -04: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
LTS20050703
453fd45ef7 localization updates (#2206)
* localization updates

Upstream: 2f854d3fd6

Types: DiscordApplicationCommmand and DiscordApplicationCommandOption: Update documentation

Types: DiscordActivityButton: Add documentation link

Helper: upsertApplicationCommand: All fields are optional, but any fields provided will entirely overwrite the existing values of those fields.

* revert unrelated changes

* update SLASH_COMMANDS_NAME_REGEX

* createApplicationCommand options: AtLeastOne instead of Partial

Co-authored-by: ITOH <to@itoh.at>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-05-13 09:25:57 -04:00
Skillz4Killz
8cb912730b feat: remove token prefix util (#2191)
* feat: remove token prefix util

* fix: token substring

* fix: speed up unit tests
2022-05-08 11:34:33 -04:00
ITOH
ac9434b40a release: 13.0.0-rc35 2022-04-10 19:28:16 +02:00
ITOH
c4d43f2b87 release: 13.0.0-rc34 2022-03-31 14:20:31 +02: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
Skillz4Killz
1aa1f02ac9 release: bug fix rc33 2022-03-27 18:33:02 +00:00
Skillz4Killz
febd8de0a6 release: rc32 2022-03-27 11:25:39 -04:00
Skillz4Killz
253781943e release: rc31 2022-03-26 00:13:27 +00:00
Skillz4Killz
eb6afaef5f release: rc30 2022-03-25 19:29:59 +00:00
Skillz4Killz
fbbac43053 fix: constant urls endpoints need to be functions 2022-03-25 19:23:44 +00:00
Skillz4Killz
6e7f9fb5f5 release: rc29 2022-03-25 18:30:15 +00:00
Skillz4Killz
707c7c05cb release: rc28 2022-03-25 14:21:07 +00:00
Skillz4Killz
084052f8eb release: rc27 2022-03-22 15:35:18 +00:00
LTS20050703
086258d1ea fix mod.ts export (#2121)
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-03-22 11:28:33 -04:00
Skillz4Killz
fe42864b00 fix: add nitroStickerPacks helper. Closes #2095 2022-03-21 12:08:43 +00:00
Skillz4Killz
8bdee65f68 release: rc26 2022-03-21 08:25:36 +00:00
Skillz4Killz
ffb48d71ee release: rc25 2022-03-20 14:51:06 +00:00
Skillz4Killz
e8f3946e72 fix: add user to reaction event 2022-03-20 12:04:09 +00:00
Skillz4Killz
450d249e4f release: rc23 2022-03-20 10:35:53 +00:00
Yuzu
33bafd1f6c fix: get rid of type errors for now (#2113) 2022-03-18 00:19:55 -04:00
Skillz4Killz
a0a1554756 refactor: typings using ReturnType (#2105)
* fix: check new types idea

* fix: type errors

* fix: new style

* fix: more cleanup

* fix: more cleanup

* fix: cleanup audit logs

* fix: cleanup stickers

* fix: cleanup integrations

* fix: more cleanup

* fix: organize into 1 place

* fix: few errors

* fix: some broken import fixes

* fix: quite a lot of fixes across the board

* fix: more fixes for broken imports

* fix: more fixes for broken imports

* fix: handler imports

* fix: all remaining import errors

* fix: more errors needing fixes

* fix: clearing up transformers

* fix: few moer types

* fix: more cleanup of extra types

* fix: fmt

* fix: cleanup discordeno file

* Nuke Base Types (#2102)

* fix: cleanup snake stuff

* convert camelCase to snake_case (#2103)

* fix: add camelize

* fix: finalize remaining errors

* fix: imports in test

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
2022-03-14 22:11:22 -04:00
Skillz4Killz
1694070fb7 release: rc22 2022-02-25 18:53:06 +00:00
Skillz4Killz
42a24f61f9 release: rc21 2022-02-25 17:50:46 +00:00
ITOH
cf747d5a63 feat!: update to api version 10 (#2063)
* testing stuff

* feat: update to api version 10

* broken url import

* do changes

* delete test file
2022-02-14 20:00:58 +01:00
Skillz4Killz
be7833a184 chore: rc20 2022-02-12 19:55:39 +00:00