Commit Graph

1406 Commits

Author SHA1 Message Date
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
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
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
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
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
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
369c3d0ce2 fix(rest): proxy 204 response remove from queue (#545)
Co-authored-by: ayntee <ayyantee@gmail.com>
2021-02-25 22:52:25 +04:00
ayntee
ea42687623 docs(LICENSE): remove license clause 2021-02-25 22:15:33 +04:00
ayntee
a6ba23553b feat(ws/shard): add closeWS() function (#543)
* feat(ws/shard): add closeWS() function

* foolproof reason lol

* feat(ws/shard): handle 3069 close code

* be less verbose 😂
2021-02-25 22:12:22 +04:00
ayntee
f98c48beed docs(LICENSE): capitalize "d" 2021-02-25 22:10:54 +04:00
Skillz4Killz
08804e9acc Merge pull request #538 from discordeno/fix-rest-prxxxx
fix(rest): fix standalone REST queue
2021-02-25 12:52:15 -05:00
Skillz4Killz
15378d782f Merge pull request #544 from itohatweb/fixing-fixes
fixing some bugs
2021-02-25 12:43:52 -05:00
ITOH
53c22b20f7 Update requests.ts 2021-02-25 18:37:57 +01:00
ITOH
b55193a51c Update server.ts 2021-02-25 18:37:53 +01:00
ITOH
95d24d941a Update queue.ts 2021-02-25 18:37:49 +01:00
ITOH
5756e137a5 Update request_manager.ts 2021-02-25 18:37:23 +01:00
ITOH
2fcdbe5822 Update request.ts 2021-02-25 18:37:18 +01:00