Commit Graph
100 Commits
Author SHA1 Message Date
ITOHandSkillz4Killz 8fa7e89e8c fix(helpers): edit interaction responses & webhook messages does not update files (#2483)
Closes: #2482

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-30 08:41:09 -05:00
ITOH 23771ea949 feat(types)!: add two_way_link to DiscordConnection (#2481)
When the connection has a corresponding thrid party OAuth2 token
`two_way_link` will be set to `true`.

Reference: https://github.com/discordeno/discordeno/issues/2479

Closes: #2479
2022-09-17 17:06:45 -04:00
ITOH 52cf958b1d fix(dnt): private name errors 2022-09-17 18:00:15 +02:00
ITOH 75abd56f7a Merge branch 'main' of github.com:discordeno/discordeno 2022-09-17 17:22:16 +02:00
ITOH 6ced7044ff fix(dnt): undici security vulnerability 2022-09-17 17:22:03 +02:00
ITOH 0b6471cc1d chore(FUNDING): move to github sponsors 2022-09-17 16:17:37 +01: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
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 d50be0834e fix(gateway,bot): socket close debug handling & last/totalShards (#2261) 2022-05-29 17:39:27 +02:00
ITOH 1423df5b8d release: 13.0.0-rc43 2022-05-27 23:51:58 +02:00
ITOH 24f7718566 feat!: make createBot sync (#2255) 2022-05-27 23:50:39 +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 89c80ed236 release: 13.0.0-rc42
Fixed:
 - pass intents to `gatewayConfig` in the `createBot` function
2022-05-25 23:05:40 +02:00
ITOH c4ba54e4ee fix(bot): pass intents to gatewayConfig (#2253) 2022-05-25 23:05:05 +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 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 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
ITOH 86116787be Merge branch 'main' of github.com:discordeno/discordeno into main 2022-05-25 18:53:46 +02:00
ITOH 72fec3a4c6 fix(rest): sendInteractionResponse file upload (#2239)
* fix(rest): `sendInteractionResponse` file upload

* f
2022-05-25 15:38:13 +01:00
ITOH be5bcb5bbc fix(rest)!: editApplicationCommandPermissions (#2238)
* fix(rest)!: `editApplicationCommandPermissions`
 - add `bearerToken` option
 - add headers to `RestPayload`
 - remove `batchEditApplicationCommandPermissions` since the related endpoint has been removed

* fix header prefix
2022-05-25 09:53:53 -04:00
ITOH 53d7b31041 refactor(.github,README,gateway,plugins/fileloader,tests,types)!: make intent calculation manual (#2243)
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-25 09:50:31 -04: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
ITOH 3a5263c4e9 style: deno fmt 2022-05-24 22:01:44 +02:00
ITOH 544cfdbc1c fix(.github): repo syncer remove deleted files (#2216) 2022-05-14 12:02:33 +01:00
ITOH 199d616f04 style: fmt 2022-05-12 19:03:03 +02:00
ITOHandSkillz4Killz 3b5ce7e61a feat(dnt): specify repository (#2164)
Currenty we do not specify out repository in our `package.json` for npm.
This changes that to target our main repository.

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-04-15 05:20:43 -04:00
ITOH eb69f54360 Merge branch 'main' of github.com:discordeno/discordeno into main 2022-04-10 19:28:34 +02:00
ITOH ac9434b40a release: 13.0.0-rc35 2022-04-10 19:28:16 +02:00
ITOH f94b6f35bb style(plugins): deno fmt 2022-04-10 14:57:21 +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
ITOH 34a358f8bf feat(helpers,types)!: slash command localization (#2129)
* feat(helpers,types): slash command localization
Discord has documented the slash command localization feature now.
This adds the full functionality for those to Discordeno.

Additionally a `Locales` has also been added to allow for better typing.

Reference: https://github.com/discord/discord-api-docs/pull/4653

* suggestion

* better locales type

* f

* fix serializing

* stupid direct pushes

* b
2022-03-27 11:02:27 -04:00
ITOH 23ebfac286 feat(types): add premiumSubscriber to RoleToggles (#2141)
In the role tags discord sends a `premium_subscriber` field. It seems that this has been forgotten to add.

Reference: https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure
2022-03-27 11:01:20 -04:00
ITOH 468a85ffa5 feat(types): add image_hash audit log change key (#2142)
This adds the `image_hash` audit log change key which is being used when a guild scheduled event cover image gets updated.

Reference: https://github.com/discord/discord-api-docs/pull/4707
2022-03-27 11:00:50 -04:00
ITOH 2c2ccb252c feat(helpers,types)!: add guild template transformer (#2132)
* feat(helpers,types)!: add guild template transformer
This adds a template transformer. Also this fixes incorrect type definitions regarding templates.

Breaking Change: The previously called `Template` interface which was used for creating templates has been renamed to `CreateTemplate`

* fmt

* forgot to add this

* use data
2022-03-25 06:15:17 -04: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 4b469c7290 ci: fix tests for changes made to the gateway/ directory (#2127) 2022-03-24 10:02:28 -04:00
ITOH 4ad02d0a20 ci: cache template code (#2126)
* ci: cache template code

* f

* f

* f

* f
2022-03-24 10:02:01 -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
ITOH c9a9cdc500 feat(plugins): better typing (#2120) 2022-03-21 22:13:15 -04:00
ITOHandSkillz4Killz e4a91b77d0 ci(workflows): fix publish to npm on version constant update (#2118)
GitHub workflows cannot trigger another workflow. Due to this the npm workflow currently did not run on a version constant update.
Since we will only publish with a version constant update there should be no problem when we move the npm release in there.

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-03-20 10:50:38 -04:00
ITOH c5d6502464 fix(dnt): add transformers (#2076)
* fix(dnt): add transformers

* Update dnt.ts
2022-02-27 15:17:02 -05:00
ITOHandSkillz4Killz 4e06ed6b2c fix(types): SelectOption#default is not required (#2066)
* fix(types):  is not required

* ddcmp

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-02-25 10:07:48 -05:00
ITOH d1cfe1d1d1 fix(README): logo image url 2022-02-21 15:50:41 +00:00
ITOH 72294936e0 Delete r.ts 2022-02-16 18:28:11 +01:00
ITOHandTriForMine 7204665e77 fix(plugins): await old function return (#2065)
* fix(plugins): await old function return

* Update plugins/permissions/src/channels/stage.ts

lol

Co-authored-by: TriForMine <quentin.nicolini@hotmail.fr>

Co-authored-by: TriForMine <quentin.nicolini@hotmail.fr>
2022-02-15 20:06:06 +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
ITOH cfbfb67c8e refactor!: rename the ws folder to gateway (#2037) 2022-02-11 05:21:10 -05:00
ITOH 7f3b86c6bd ci: publish workflow change the name to publish (#2029) 2022-02-09 20:22:05 -05:00
ITOH 75a8aaa064 feat(types): add value to InputTextComponent (#2026) 2022-02-09 14:08:49 -05:00
ITOH 6c500f2d69 style: deny changes to deno.json (#2022) 2022-02-09 12:50:59 -05:00
ITOH 9c7a7a18e3 ci: run local tests on PR (#2024) 2022-02-09 12:34:45 -05:00
ITOH 0153020368 style: change git to use lf line endings (#2023)
* style: set git to use `lf` line endings

* Update .gitattributes

* Normalize all the line endings
2022-02-09 12:34:30 -05:00
ITOH 3f1a1e73e6 refactor(rest)!: move createRestManager to rest module (#2013) 2022-02-08 18:05:51 -05:00
ITOH d2297d5f39 refactor(gateway)!: move createGatewayManager to gateway module (#2012) 2022-02-08 16:25:46 -05:00
ITOH 2e3984c98e ci: do not run tests on PR 2022-02-08 19:50:29 +00:00
ITOH 4ba94d0f4f ci: also run tests on pull requests (#2007) 2022-02-08 14:44:59 -05:00
ITOH b70c3c8fcb refactor!: do not store token prefixed with Bot (#2002) 2022-02-05 12:57:15 -05:00
ITOH 4d64138520 Merge branch 'main' of https://github.com/discordeno/discordeno 2022-02-04 22:41:56 +01:00
ITOH 943e7af5ec fix(types): handle communicationDisabledUntil correctly (#1999)
* types(GuildMemberUpdate): fix invalid type for `communicationDisabledUntil`

* types(transformers): parse `communicationDisabledUntil`
2022-02-04 22:40:09 +01:00
ITOH f6e75fc328 style: run deno fmt 2022-02-04 22:40:09 +01:00
ITOH 41a9c00070 ci(npm): publish to npm on tag creation (#1997)
* Create npm.yml

* fix invalid on

* Update dnt.ts

* Update npm.yml
2022-02-04 22:40:08 +01:00
ITOH 6bef93c9cb fix(cname): website domain not getting set (#1996) 2022-02-04 22:39:54 +01:00
ITOH 204e88b68b fix(types): handle communicationDisabledUntil correctly (#1999)
* types(GuildMemberUpdate): fix invalid type for `communicationDisabledUntil`

* types(transformers): parse `communicationDisabledUntil`
2022-02-04 12:59:35 -05:00
ITOH a2facdc450 style: run deno fmt 2022-02-04 18:52:32 +01:00
ITOH 218a3a561e ci(npm): publish to npm on tag creation (#1997)
* Create npm.yml

* fix invalid on

* Update dnt.ts

* Update npm.yml
2022-02-04 12:17:31 -05:00
ITOH ff5b106010 Create CNAME (#1996) 2022-02-04 10:07:12 -05:00
ITOH c2b7a6ec03 test: remove configs.ts (#1995)
* refactortests): remove config.ts

* Update mod.ts

* Update mod.ts

* .env file
2022-02-04 10:06:55 -05:00
ITOH 81f8e0377c style: move to deno fmt (#1992)
* Create deno.json

* run format

* run format

* ci: only check formatting

* f

* Update settings.json

* Update settings.json
2022-02-04 15:00:04 +01:00
ITOH 637e2c2a90 ci(site_tests): fix invalid pr path filter (#1991) 2022-02-03 17:17:02 -05:00
ITOH 511f4ed940 chore(template): remove sublicensing 2022-02-03 22:33:12 +01:00
ITOH 5f25263bd4 chore(template): to main repo (#1988)
* chore: move template to main repo

* ci

* Update sync_repos.yml
2022-02-03 18:02:44 +00:00
ITOH a8d6e4f152 Update README.md (#1987) 2022-02-03 12:34:30 -05:00
ITOH 610a6fbaa7 ci: fix docs folder has been renamed to site (#1986)
* Update and rename docs.yml to site.yml

* Update sync.yml

* Update sync.yml
2022-02-03 12:24:18 -05:00
ITOH 24239053f3 docs: move to docusaurus (#1984)
* new site start

* ci: test docusaurus

* we use npm

* Update site_tests.yml

* Update site_tests.yml

* Update site_tests.yml

* do not ignore package.json

* Update package-lock.json

* Create deploy.yml

* Update docusaurus.config.js

* update authors

* Update docusaurus.config.js

* Update deploy.yml

* remove blog posts

* Update README.md

* delete old docs

* Update .gitignore

* delete template images

* Create 2022-02-03-welcome.md
2022-02-03 11:57:13 -05:00
ITOH 2c49a01f1a chore(.github): update contributing guidelines 2022-02-01 18:06:59 +01:00
ITOH 227f691c6e chore(.github): remove @ayntee from codeowners
Ayntee is currently not here so we can remove him from codeowners for now and add him back when he is back.
2022-02-01 16:49:55 +01:00
ITOH f1e2b88f0f fmt 2022-02-01 16:34:16 +01:00
ITOH 8781c22b83 fix(workflows): only run workflow when necessary 2022-02-01 16:34:01 +01:00
ITOHandlts20050703 012b375edc Update README.md
Co-authored-by: lts20050703 <87189679+lts20050703@users.noreply.github.com>
2022-02-01 16:25:46 +01:00
ITOH c0b6322369 Update README.md 2022-02-01 15:18:39 +00:00
ITOH c3f8589898 Update sync.yml 2022-02-01 16:10:32 +01:00
ITOH 309839f733 Update README.md 2022-02-01 16:08:03 +01:00
ITOH 921ac6ef70 Update docs.yml 2022-02-01 16:07:57 +01:00
ITOH f7b3655ab5 asfdasdf 2022-02-01 16:03:53 +01:00
ITOH c77953e241 Update README.md 2022-02-01 16:03:47 +01:00
ITOH a8c104ec03 cleanup 2022-02-01 16:03:39 +01:00
ITOH a517545b12 Update README.md 2022-02-01 15:59:53 +01:00
ITOH eb928309bd test other workflow 2022-02-01 15:59:35 +01:00
ITOH b67b28670b f 2022-02-01 15:53:32 +01:00
ITOH 8b4a7e4136 Update README.md 2022-02-01 15:52:21 +01:00
ITOH e9edf1f7e3 Update docs.yml 2022-02-01 15:51:29 +01:00
ITOH 11abe33ab7 Update docs.yml 2022-02-01 15:49:53 +01:00
ITOH 656ae0ff6a Update README.md 2022-02-01 15:47:46 +01:00
ITOH baaf35df81 Update docs.yml 2022-02-01 15:47:39 +01:00