Commit Graph

5354 Commits

Author SHA1 Message Date
ITOH
cfbfb67c8e refactor!: rename the ws folder to gateway (#2037) 2022-02-11 05:21:10 -05:00
Skillz4Killz
8aaea9f339 refactor!: move dirs outside of src/ (#2032) 2022-02-11 09:49:53 +00:00
Skillz4Killz
471ef5cb6c fix(gatway): resharder bug (#1979)
* fix: resharder bug. TY giveawayboat 4 catching it

* fix: make handler set properly once resharded

* Update src/ws/resharder.ts

* Update src/ws/resharder.ts

* Update src/ws/resharder.ts

* Update src/ws/resharder.ts

* fix: allow flexible resharding for multi vps bots

* fix: allow overriding on close

* fix: separate resharding checks

* fix: dupes from conflict

* fix: requested changes

* Update src/ws/resharder.ts

Co-authored-by: ITOH <to@itoh.at>

* fix: gateway.resharding.x

* fix: allow editing guilds cached with new shard id

* fix: fmt

* Update src/ws/gateway_manager.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/ws/gateway_manager.ts

Co-authored-by: ITOH <to@itoh.at>

* Update src/ws/resharder.ts

Co-authored-by: ITOH <to@itoh.at>

* fix: use guildIds[] instead of per guildi d

* fix: use og name

* fix: dumb deno fmt

Co-authored-by: ITOH <to@itoh.at>
2022-02-10 23:43:29 +01:00
ITOH
7f3b86c6bd ci: publish workflow change the name to publish (#2029) 2022-02-09 20:22:05 -05:00
Skillz4Killz
86f5e69331 feat: rc19 release (#2027) 2022-02-09 19:18:09 +00: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
Yaikava
f1dbacb74b fix(types): add missing message component exports (#2025)
* fix - types - export inputTextComponent

* export textStyles in mod.ts
2022-02-09 16:07:17 +00:00
LTS20050703
3b3663f2b9 refactor: remove unused imports (#2021)
* make lib faster (delete unused import)

* Revert deno.json change

* Missing }
2022-02-09 13:38:11 +01:00
Yaikava
a6f0287bbb messageComponents - fix typo (#2014) 2022-02-09 01:21:56 -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
Skillz4Killz
104f0680e9 fix(gateway): reserve 4 gw requests for heartbeating (#2006) 2022-02-07 17:35:38 +00:00
Skillz4Killz
0ae9cf7de1 fix: update dnt and settings (#2005)
* fix: update dnt and settings

* fix: plugins paths

* Update dnt.ts

Co-authored-by: ITOH <to@itoh.at>

* Update dnt.ts

Co-authored-by: ITOH <to@itoh.at>

Co-authored-by: ITOH <to@itoh.at>
2022-02-07 16:40:59 +00:00
Skillz4Killz
ef5b25b319 test: fix unit tests related to code bugs (#2001)
* fix: get tests runnable

* fix: tests are now passing

* fix: 32 passing tests

* fix: deno fmt u dumb dumb work automatically for once in your life

* fix: 54 tests passing now

* fix: 94 passing, itoh was wrong he guess wrong hehe

* fix: remove debug logs

* fix: remove broken webhook test for now

Co-authored-by: ITOH <to@itoh.at>
2022-02-06 15:56:56 +00:00
LTS20050703
dea617b1f2 style: remove .prettierrc (#2004) 2022-02-06 07:43:36 +01: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
LTS20050703
2b7b0dd05f discord-api-docs: Document Scheduled Event Covers (#1960)
* Document Scheduled Event Covers

* using iconHashToBigInt

* using undefined instead of null

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-02-04 22:40:08 +01:00
LTS20050703
931673a68d discord-api-docs: Document partial member data in message interaction object (#1958)
* Document partial member data in message interaction object

* Update message transformer following MessageInteraction interface changes

* an attempt to transform partial member

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
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
LTS20050703
86023fb7ee discord-api-docs: Document Scheduled Event Covers (#1960)
* Document Scheduled Event Covers

* using iconHashToBigInt

* using undefined instead of null

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-02-04 10:16:20 -05:00
LTS20050703
f1a6a1c258 discord-api-docs: Document partial member data in message interaction object (#1958)
* Document partial member data in message interaction object

* Update message transformer following MessageInteraction interface changes

* an attempt to transform partial member

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-02-04 10:15:35 -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
TriForMine
9a41896918 fix(editMessage): permissions plugin (#1993)
Fix permissions plugin, that throws an error about message content length when it's valid instead of when it's invalid.
2022-02-03 17:16:04 -05:00
ITOH
511f4ed940 chore(template): remove sublicensing 2022-02-03 22:33:12 +01:00
Skillz4Killz
7ceb6e2d1c fix: docs home page (#1990) 2022-02-03 19:42:09 +00: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
lts20050703
f57aec3895 discord-api-docs: Add stickers on preview (#1949)
* Add stickers on preview

* update getGuildPreview

* Sticker transformer

* fix forgot to update stuff
2022-02-02 10:35:54 -05:00
lts20050703
1d6db1b56d discord-api-docs: Document stage discovery as deprecated (#1951)
* Document stage discovery as deprecated

* delete Public from PrivacyLevel, discoverableDisabled from StageInstance

* Nuke discoveryDisabled and privacyLevel
2022-02-01 22:37:17 -05:00
Skillz4Killz
a2d03d453d Merge pull request #1969 from discordeno/contributing
chore(.github): update contributing guidelines
2022-02-01 12:16:08 -05:00
Skillz4Killz
fe417cea37 Merge pull request #1959 from lts20050703/gh-1918
discord-api-docs: Document message flag FAILED_TO_MENTION_SOME_ROLES_IN_THREAD
2022-02-01 12:14:06 -05:00
Skillz4Killz
a8fb15f050 Merge pull request #1957 from lts20050703/gh-1915
discord-api-docs: Document error code 30046 (old message edit rate limit)
2022-02-01 12:12:55 -05:00
Skillz4Killz
1583d75489 Merge pull request #1956 from lts20050703/gh-1914
discord-api-docs: Adds error 50068
2022-02-01 12:12:45 -05:00