Commit Graph

1246 Commits

Author SHA1 Message Date
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
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 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 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 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
Skillz 2f58804311 Merge branch 'master' of https://github.com/discordeno/discordeno into proxy-ws 2021-02-25 17:12:34 -05:00
Skillz edd04e850b fix secret key 2021-02-25 16:58:56 -05:00
Skillz f38ba603e8 fix authorization 2021-02-25 16:58:46 -05:00
Skillz 94bc5be370 let end user do server 2021-02-25 16:58:10 -05:00
Skillz cdd043778c this is why while sucks 2021-02-25 16:57:52 -05:00
Skillz 55bf6e90d7 this shit i have i no idea 2021-02-25 15:30:20 -05:00
Skillz bf151ec119 so freaking shitty dumnb aefiuhesr error fix 2021-02-25 15:30:07 -05:00
Skillz 8aac0f708f dude secret key is the shit 2021-02-25 15:29:47 -05:00
Skillz cc6a93c180 bug fixes for proxy ws 2021-02-25 15:29:34 -05:00
Skillz 5f7269e0d1 i have no idea why i did this 2021-02-25 15:29:11 -05:00
Skillz f1d4f35e46 moves random function 2021-02-25 15:28:49 -05: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 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
Skillz 31da4ddee6 Merge branch 'master' of https://github.com/discordeno/discordeno into proxy-ws 2021-02-25 12:53:25 -05: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
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
ayntee 266d16d367 build: update zlib & ed25519 to latest (#540) 2021-02-25 19:57:24 +04:00
Skillz 0e82d1cf2e exports 2021-02-23 12:50:47 -05:00
Skillz af4dc251fb Merge branch 'master' of https://github.com/discordeno/discordeno into proxy-ws 2021-02-22 16:14:29 -05:00
Skillz 4f8d5a4b65 reducing complexity 2021-02-22 14:31:03 -05:00
Skillz 98690a037e reduce complexity 2021-02-22 14:30:46 -05:00
Skillz 17f5222c65 remove log 2021-02-22 12:02:29 -05:00
Skillz 6eca60777c itoh is love itoh is bae this is his stuff 2021-02-22 12:01:32 -05:00
ITOH 15dc027b92 feat(structures/channel): add getters and handlers to Channel struct (#533)
* export CleanVoiceState interface

* feat(structures): channels getter voiceStates

* feat(structures): channels add connectedMembers

* feat(structures): channel add disconnect

* Update channel.ts

* feat(structures): channels add delete

* idk

* feat(structures): channel add editOverwrite

* feat(structures): channel add deleteOverewrite

* feat(structures): channel add edit

* feat(structures): channel add hasPermission
2021-02-21 21:22:52 +04:00
Skillz4Killz f481962b9c fix(handlers/channel): rewrite permission handler for send*Message() (#535)
* v8 stopped sending this

* better safety handling

* husky o husky where art though husky
2021-02-21 21:21:56 +04:00
Skillz4Killz c81d28acfe fix(rest/request_manager): embed URL in the request body (#536)
* fix big brain bot auth on proxy rest

* whoops

* fix header

* fix url and method in body
2021-02-21 21:19:15 +04:00