Commit Graph

40 Commits

Author SHA1 Message Date
rigormorrtiss
7cfc5def85 build: update dependencies to latest 2021-06-16 17:51:05 +04:00
rigormorrtiss
823135b73c chore: update deps to latest version 2021-05-28 14:59:48 +04:00
itohatweb
179add27c9 Prettified Code! 2021-05-21 15:55:49 +00:00
itohatweb
3549cdeb63 Prettified Code! 2021-05-21 15:51:33 +00:00
Skillz4Killz
a7fff30246 are u kidding 2021-05-03 20:58:11 +00:00
Skillz4Killz
52f408823f test ed25519 2021-05-03 20:53:57 +00:00
ayntee
5d9b5d352a Add verifySignature() function 2021-04-19 11:52:38 +04:00
ayntee
59dbc8ed06 Use nacl for signature verification and remove server.ts (included in template) 2021-04-19 11:51:05 +04:00
ITOH
98bf292aff fix lint 2021-04-15 18:06:31 +02:00
ITOH
12f9f3c360 fix enums 2021-04-13 19:02:40 +02:00
Skillz4Killz
ad87124bca more stuff 2021-04-08 19:26:38 +00:00
Skillz4Killz
b81bf8d484 chore: deno fmt 2021-04-04 00:34:40 +00:00
ayntee
367a7975f8 chore: export verifySecurity() 2021-03-29 16:50:54 +04:00
ITOH
c91c9d0870 types: remove entire types (#684) 2021-03-23 19:14:26 +04:00
ayntee
eba5679806 refactor(helpers): rename executeSlashCommand to sendInteractionResponse (#676) 2021-03-17 15:28:44 +04:00
ayntee
4ae893aebd deps: update @evan/wasm to latest 2021-03-16 22:38:02 +04:00
ayntee
8654aeded5 refactor: rename controllers to handlers and handlers to helpers (#660)
* refactor: rename controllers to handlers and handlers to helpers

* fmt
2021-03-11 21:41:03 +04:00
ayntee
ba2363618e deps: update to latest (#656) 2021-03-11 17:46:06 +04:00
Skillz4Killz
23708cc39d fix(types/webhook): update interaction response types (#644)
This reverts commit 1b29c92aac.
2021-03-08 18:55:31 +04:00
ayntee
bd14075c8a fix(types/channel): change FileContent.blob type to Blob (#509)
* fix(types/channel): change FileContent.blob type to Blob

* idk

* change to blob

* idk
2021-03-08 18:12:35 +04:00
Skillz4Killz
53bd6c2386 feat(types/member): add permissions in MemberCreatePayload (#641)
* add permission

* update interaction type
2021-03-08 17:37:18 +04:00
ayntee
1b29c92aac Revert "fix(types/webhook): update interaction response types (#610)" (#635)
This reverts commit b511a0d39f.
2021-03-08 15:42:42 +04:00
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
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
ayntee
03ffb63f0f build: update dependencies to latest (#550) 2021-02-26 14:54:07 +04:00
ayntee
266d16d367 build: update zlib & ed25519 to latest (#540) 2021-02-25 19:57:24 +04:00
ayntee
7d3aeac9a0 chore: update dependencies (#519) 2021-02-13 13:03:13 +04:00
ayntee
8ab42a6b95 chore: update deps (#496) 2021-02-01 12:27:13 +04:00
ayntee
f1b095eb54 style: fix lint warnings (#489)
* style: fix lint warnings

* style: fix lint warnings
2021-01-30 15:07:14 +04:00
ayntee
b3f9287183 style: format files 2021-01-20 17:02:01 +04:00
Ayyan
e5a8f3b358 chore: setup "deno lint" (#331)
* chore: setup "deno lint"

* ci(lint): add --unstable flat to lint script

* lint

* lint

* refactor: destructure assignment for Message#guildID

* chore: remove TODO comment

* refactor: remove redundant async

* chore: switch to Deno stable vscode ext

* chore: remove ignore comments

* chore: remove ignore comments

* chore: remove @ts-ignore comment

* fixes

* fixes

* chore: remove deno-lint-ignore comment

* chore: add index signature
2021-01-03 20:12:42 +04:00
TriForMine
484f86638f refactor: resolve async promises, fixed typos, and used inline variable for return (#299)
* Added await in async function, fixed typos and used inline variable for return

* Added await in async function, fixed typos and used inline variable for return

* Revert "Added await in async function, fixed typos and used inline variable for return"

This reverts commit f31caf5d

* Added await in async function, fixed typos and used inline variable for return

* Fixes format

* Fixes format 2

* Fixes format 4475757

* Fixes format 878757854786312378657865785785785785

* Change return to await

* Fixing more issues

* Fixing even more issues

* Fixing even more issues +

* Fixes format
2020-12-30 12:31:11 +04:00
Skillz4Killz
01784791fe Merge pull request #275 from discordeno/deps
deps: use unpkg instead of esm.sh
2020-12-27 08:45:38 -05:00
Ayyan
5959987639 Update README.md 2020-12-27 16:59:58 +04:00
ayntee
3ca78030cb docs: improve wording 2020-12-27 16:51:18 +04:00
ayntee
a27349d2ec deps: use unpkg instead of esm.sh 2020-12-27 14:49:16 +04:00
Skillz
ef938ca4ed fixes 2020-12-26 20:16:11 -05:00
ayntee
8e3fab7411 fix: remove util/cdn export 2020-12-24 17:59:15 +04:00
ayntee
fe43cc8f88 Some updates―renaming interfaces and files 2020-12-23 18:12:12 +04:00
Skillz4Killz
19f228c329 feat: slash commands and interactions (#248)
* start slash commands

* lil bit of this

* a little bit of that

* chore: add slash commands' types  (#249)

* Add slash Types

* style: format source files

* interaction create event

* make it a valid controller

* respond to a slash command

* interactions

* shtuff

* gotta get them all

* you gotta hit the bullseye

* you gotta survive

* most important thing i forgot

* please keep this

* more shuttttfgvuasdafwesdvjzdk

* more endpoints

* TYPO

* making that party jam

* this is my jam

* refactor: move slash commands types to webhook.ts (#250)

* Move Types

* Move to webhook.ts types file

* Update webhook.ts

* fix: update ExecuteSlashCommandOptions (#252)

* Move Types

* idk

* Remove Unnecessary Comment

* details

* http side of slash

* Format

* idk

* cleanup

* fmt

* fix imports

* tet

* remove log

* Update interactions.ts

* Update interactions.ts

* Update interactions.ts

* Use tweetnacl_deno for verification

* chore: move tweetnacl import to deps.ts

* Update deps.ts

* deps: use tweetnacl from GitHub

* fix: use serverOptions.slashHexKey

* fix: res -> req

* fix: use TextEncoder

* deps: add std@0.81.0/encoding/hex.ts

* chore: use encode() from std/encoding/hex.ts

* I am using the GitHub online editor pls help

* Update deps.ts

* Update interactions.ts

* Update interactions.ts

* Update interactions.ts

* Update interactions.ts

* fix: respond with 400 if timestamp and signature not present

* style: format files

* refactor!: merge createServer() into startServer()

* style: format files

Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
Co-authored-by: ayntee <ayyantee@gmail.com>
2020-12-22 21:39:01 +04:00