Commit Graph

5354 Commits

Author SHA1 Message Date
ITOH
b511a0d39f fix(types/webhook): update interaction response types (#610)
* add the changes from dc

* Update src/types/webhook.ts

* Update src/interactions/types/interactions.ts

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 19:21:58 +04:00
ITOH
289a1ec20f Merge pull request #617 from itohatweb/fix-upsert-slash-typings
fix(handlers/webhook): update slash commands handlers' types
2021-03-07 16:03:56 +01:00
ayntee
b0ebd5627d Update src/types/webhook.ts 2021-03-07 19:02:30 +04:00
ITOH
dce5f6f90e update jsdoc 2021-03-07 16:02:10 +01:00
ITOH
4e00c31545 add extends 2021-03-07 16:00:50 +01:00
ITOH
bcfb6014ab Merge branch 'fix-upsert-slash-typings' of https://github.com/itohatweb/discordeno into fix-upsert-slash-typings 2021-03-07 15:52:40 +01:00
ITOH
68bb2bc7a3 Merge remote-tracking branch 'upstream/main' into fix-upsert-slash-typings 2021-03-07 15:52:37 +01:00
ITOH
25858b3144 feat(util): add camelToSnakeCase() & snakeToCamelCase() (#615)
* feat(util): add to camel/snake case functions

* add tests

* hmm

* add lint ignore comment

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 18:51:59 +04:00
ITOH
2865f42f72 feat(types/embed): add proxy_url to EmbedVideo interface (#616)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-07 18:51:48 +04:00
ayntee
4af6f363f8 feat(handlers/webhook): test slash command name against ^[\w-]{1,32}$ (#613)
* feat(handlers/webhook): test slash command name against ^[\w-]{1,32}$

* Update src/api/handlers/webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/api/handlers/webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/api/handlers/webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* Update src/api/handlers/webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

* move to constants file

* idk

* idk

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-03-07 18:48:12 +04:00
ayntee
37a825c2aa Merge branch 'main' into fix-upsert-slash-typings 2021-03-07 18:47:16 +04:00
ITOH
b095b995ec fix upsertSlashCommand & upsertSlashCommands 2021-03-07 15:46:08 +01:00
ITOH
30470d8551 update types 2021-03-07 15:45:53 +01:00
Skillz4Killz
9c7340f624 fix(handlers/webhook): return Message object instead of raw payload (#611)
* fix: change any to message types

* Update webhook.ts

* Update src/api/handlers/webhook.ts

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>

Co-authored-by: ayntee <ayyantee@gmail.com>
Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
2021-03-07 18:39:19 +04:00
ITOH
b539d5dd25 Merge pull request #612 from discordeno/ayntee-patch-1
Create CODEOWNERS
2021-03-07 14:37:56 +01:00
ayntee
1c5c90834a Create CODEOWNERS 2021-03-07 11:59:22 +04:00
ITOH
c319ca66cd feat(handlers/message): add options to getReactions (#607) 2021-03-07 11:55:18 +04:00
Skillz4Killz
d084c3f3c4 fix(handlers/channel): handle max_age and max_uses limit in createInvite() (#597)
* fix: handle invalid invite create limits

* refactor: cleanup conditonals

* chore: clarification

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-06 23:44:31 +04:00
Skillz4Killz
e5bf5cd47c feat(handlers/webhook): support ephemeral messages (#602)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-06 22:59:45 +04:00
ITOH
92df50a10c Merge remote-tracking branch 'upstream/main' into main 2021-03-06 19:37:57 +01:00
ayntee
33ff8cd752 feat(types/permission): add USE_SLASH_COMMANDS permission (#595) 2021-03-06 22:19:11 +04:00
ayntee
d8f3674779 fix(handlers/webhook): do not add Date.now() to 900000 ms in executeSlashCommand() (#601)
Related #589
2021-03-06 22:17:04 +04:00
ayntee
5802a9d1ca fix(types/interactions): make "content" optional in SlashCommandCallbackData (#599)
* fix(types/interactions): make "content" optional in SlashCommandCallbackData'

Closes #590

* ignore lint
2021-03-06 22:16:02 +04:00
Skillz4Killz
67e6a41e99 feat(types/auditlog): add missing props to DiscordAuditLogChange interface (#600) 2021-03-06 22:06:11 +04:00
ayntee
65ee27556a docs(README): remove hard-coded prefix from usage 2021-03-06 19:29:46 +04:00
ayntee
565b9e1472 docs(structures/member): update description for Member#guildMember() (#565) 2021-03-06 11:48:48 +04:00
ITOH
e10b835367 feat(rest/server): support TLS protocol (#562)
* add keys option

* add serveTLS

* Update src/rest/types/server.ts

* Update src/rest/types/server.ts

* rename the keys

* forgot that one

* Update src/rest/types/server.ts

* some renaming

* Update src/rest/types/server.ts

* Update src/rest/server.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-03-06 11:48:29 +04:00
ITOH
e24aaa29fb Merge remote-tracking branch 'upstream/main' 2021-03-05 16:16:43 +01:00
ayntee
c6ce5f7269 test: set sanitizeExit to false 2021-03-04 09:30:27 -05:00
ayntee
16ba155f33 style: format json files (#563) 2021-03-03 14:07:57 +04:00
ITOH
d563e362bb Merge remote-tracking branch 'upstream/master' 2021-03-01 22:36:23 +01:00
ayntee
f1473224cc docs(README): add table of contents section 2021-03-02 00:09:00 +04:00
ayntee
9a0bf37e75 Merge branch 'master' of https://github.com/discordeno/discordeno 10.4.0 2021-03-01 21:58:23 +04:00
ayntee
585ed283fe test(main): remove auto-deletion of guilds 2021-03-01 21:57:59 +04:00
ayntee
b021d3a21c chore: enable deno and deno lint in container 2021-03-01 21:28:29 +04:00
ayntee
25d7983eba chore: add vscode-related files to .gitignore (#561) 2021-03-01 21:26:53 +04:00
ayntee
832cb63460 test(main): close websocket instead of Deno.exit() (#560) 2021-03-01 20:56:17 +04:00
ayntee
0ec769fad0 chore: remove 'deno.unstable' from settings.json 2021-03-01 15:33:45 +04:00
ayntee
848e3d5ced style(docs/faq): run deno fmt 2021-03-01 15:19:09 +04:00
Dhruvin-Purohit
04dbdaf2e0 docs(faq): fix spelling and grammatical errors (#558)
* feat(grammar): Common Mistakes.

* Update docs/src/faq.md

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-02-28 22:52:30 +04:00
Dhruvin-Purohit
684f827bd7 docs(README): fix grammatical error (#557)
* feat(grammar): fixed a mistake.

resources is a plural word but is being used as a singular word here

* Update docs/src/README.md

Co-authored-by: ayntee <ayyantee@gmail.com>
2021-02-28 13:12:14 +04:00
ayntee
56ae257f02 docs(README): add link to invalid request limit (#552)
* docs(README): add link to invalid request limit

* style: format README.md
2021-02-28 00:06:45 +04:00
ayntee
a72bf9bb2e test: remove weird workaround (#556) 2021-02-28 00:05:01 +04:00
ayntee
7a52f301b3 fix(util/permissions): move owner check before member cache check (#555) 2021-02-27 23:54:37 +04:00
ITOH
8f8f988e2b fix(structures/channel): empty guildID in Channel struct (#551) 2021-02-26 22:11:02 +04:00
ITOH
622fee2154 Merge remote-tracking branch 'upstream/master' 2021-02-26 18:43:02 +01:00
ayntee
7b482aeed1 fix(rest/queue): logical error in response status handling (#549) 2021-02-26 21:18:10 +04:00
ayntee
03ffb63f0f build: update dependencies to latest (#550) 2021-02-26 14:54:07 +04:00
ITOH
c7a326ad8f Merge remote-tracking branch 'upstream/master' 2021-02-26 08:27:42 +01:00
Skillz
2f58804311 Merge branch 'master' of https://github.com/discordeno/discordeno into proxy-ws 2021-02-25 17:12:34 -05:00