Commit Graph

38 Commits

Author SHA1 Message Date
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
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
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
Skillz4Killz
92b6f27491 BREAKING: fixes shard spawning of final shard bug 2022-05-18 18:36:48 +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
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
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
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
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
Skillz4Killz
8aaea9f339 refactor!: move dirs outside of src/ (#2032) 2022-02-11 09:49:53 +00:00