Commit Graph

4076 Commits

Author SHA1 Message Date
LTS20050703
bea86bb47b fix(helpers): when creating/modifying a channel permission_overwrites can omit the allow and deny (#2053)
Clarify that permission_overwrites can omit allow and deny keys when creating/modifying channel/channel ovewrites
2022-02-19 15:35:03 +01:00
LTS20050703
79e260892b docs(types): Clarify documentation on the CREATE_PUBLIC_THREADS permission (#2055) 2022-02-19 15:35:03 +01:00
LTS20050703
0cb2baaea2 fix(types): invitable & createTimestamp are in ThreadMetadata and not in Channel (#2056) 2022-02-19 15:35:03 +01:00
LTS20050703
1f485eea0b fix(types): ThreadMetadata#create_timestamp is optional and nullable & locked is not optional (#2057) 2022-02-19 15:35:02 +01:00
LTS20050703
120fae0840 fix(types): ScheduledEvent#creator_id is nullable (#2059) 2022-02-19 15:35:02 +01:00
LTS20050703
9a4a2909f5 docs(types): update MessageComponentTypes variant description (#2060) 2022-02-19 15:35:02 +01:00
LTS20050703
51ce4803af docs(types): add link for InputTextComponent (#2061) 2022-02-19 15:34:47 +01:00
ITOH
72294936e0 Delete r.ts 2022-02-16 18:28:11 +01:00
ITOH
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
meister03
b7b2120a6f docs(site, template): add Nodejs Bot Guide (#1998)
* Inital Docs

* Finish Design

* Finish Design

* Add FILE Structure'

* Add Not Ready Template

* Update Template

* Add Command Manager and first Command ping

* Add Command Manager and first Command ping

* Add Embeds Guide & EventManager

* INITIAL FINISH: GUIDE

* FIX TYPOS, LTS's Review, sidebar_position

* Update site/docs/nodejs/getting-started.md

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

* Fixed Position? Add some comments on template, add changes in review

* Add Interaction Handling, Modals

* format files

* Update site/docs/nodejs/getting-started.md

1

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

* Update site/docs/nodejs/CommandHandler/command-manager.md

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

* Fix Review things

* itoh's suggestions

The guide looks very very veery good overall I like it. This commit adds my personal style of writing.
Please review it 🙏.

PS: I hope these are not too many changes .-.

* deno fmt

Co-authored-by: meister03 <root@_HOSTNAME_>
Co-authored-by: ITOH <to@itoh.at>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-02-15 13:54:05 +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
7914ef1d11 fix: edit member transforms for discord 2022-02-13 14:48:51 +00:00
LTS20050703
3c272e8c8b Add missing communication_disabled_until audit log change key (#2044)
* Add missing communication_disabled_until audit log change key

* oops it's not camelCase it's snake_case
2022-02-13 09:12:31 -05:00
LTS20050703
18935a1669 Fix bug in audit log transformer and helper (#2043) 2022-02-12 23:33:28 -05:00
LTS20050703
3c10622d69 Add locale fields to interaction structure (#2042)
* Add locale fields to interaction structure

* making locale and guildLocale optional and add a warning to guildLocale

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

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-02-12 23:32:37 -05:00
Skillz4Killz
be7833a184 chore: rc20 13.0.0-rc20 2022-02-12 19:55:39 +00:00
Skillz4Killz
9a5540d5c3 fix: add typesversions to dnt 2022-02-12 19:51:58 +00:00
LTS20050703
0745bf7470 fix(types): add code 40004 to JsonErrorCodes (#2039) 2022-02-11 17:38:09 +00:00
LTS20050703
fd4e0c05be fix(types): add code 40060 to JsonErrorCodes (#2038) 2022-02-11 17:31:56 +00:00
Skillz4Killz
3f432caef6 feat(plugins/helpers): fetchAndRetrieveMembers (#2035) 2022-02-11 17:24:47 +00:00
Skillz4Killz
23abefb291 fix(plugins/permissions): getting disabled welcome screens requires MANAGE_GUILD (#2034)
* fix: require manage guild perm in welcome screen

* fix: perm check only if screen disabled
2022-02-11 17:18:58 +00:00
Skillz4Killz
14f44458f9 feat(plugins/helpers): add sendTextMessage to send a simple string (#2033)
* feat: sendTextMessage to send simple string

* fix: clean up imports

* Update plugins/helpers/mod.ts

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
2022-02-11 17:14:49 +00:00
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