Commit Graph

388 Commits

Author SHA1 Message Date
ayntee 2ae07da6db Rename socket to ws 2020-12-26 19:02:57 +04:00
ayntee 8e3fab7411 fix: remove util/cdn export 2020-12-24 17:59:15 +04:00
ayntee 3d3e2f3363 chore: remove todo comment 2020-12-24 17:56:29 +04:00
ayntee fe43cc8f88 Some updates―renaming interfaces and files 2020-12-23 18:12:12 +04:00
TriForMine 9a3475f2c6 fix: export structure types and update zlib to latest (#270)
* Update deps.ts

* Fixing import for structures

* Fix export

* Fixes format
2020-12-23 14:48:14 +04:00
ayntee 321175a72f Revert "chore: verbose imports"
This reverts commit dfe6f371d3.
2020-12-23 11:03:06 +04:00
Skillz4Killz 3c1d72353a fixes 2020-12-22 19:18:42 +00:00
Skillz4Killz bdcab9fdf7 Update message.ts 2020-12-22 14:16:14 -05:00
ayntee dfe6f371d3 chore: verbose imports 2020-12-22 22:59:09 +04:00
ayntee b353987809 fix: update import paths 2020-12-22 22:10:33 +04:00
ayntee 7d183b9bef Merge branch 'next' of https://github.com/discordeno/discordeno into getters 2020-12-22 22:06:41 +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
Ayyan e49a23687e refactor!: organize directories and files (#268)
* refactor!: organize directory structure

* fix: avoid stack overflow err

* chore: swtch back to std/encoding for base64

* style: format source files
2020-12-22 21:26:27 +04:00
TriForMine f9114b98d0 feat: add GuildMember#pending prop (#269) 2020-12-22 16:27:12 +04:00
ayntee f1d0ef2d35 chore: resume and reconnect 2020-12-22 16:05:09 +04:00
ayntee aa03e5ed4d chore: remove @ts-ignore comments 2020-12-19 21:49:45 +04:00
Skillz4Killz e7ce52bab4 Update src/structures/role.ts
Co-authored-by: Ayyan <ayyantee@gmail.com>
2020-12-19 12:20:19 -05:00
Skillz4Killz d7856f17d3 Update src/structures/message.ts
Co-authored-by: Ayyan <ayyantee@gmail.com>
2020-12-19 12:20:10 -05:00
Skillz4Killz 707d4a6673 Update src/structures/channel.ts
Co-authored-by: Ayyan <ayyantee@gmail.com>
2020-12-19 12:19:57 -05:00
Skillz4Killz 6ed345b87b Update src/structures/role.ts
Co-authored-by: Ayyan <ayyantee@gmail.com>
2020-12-19 12:19:34 -05:00
ayntee d08adff0dd feat: add getters for Template 2020-12-19 13:52:48 +04:00
ayntee e082a5d693 fix: check if Message#guildID is present 2020-12-19 13:24:38 +04:00
ayntee 01fc00334e fix: Member#guildMember return type 2020-12-19 13:19:39 +04:00
Skillz4Killz 067b80e0eb fix max stack i hope 2020-12-16 14:28:20 -05:00
Skillz4Killz c910c381a0 please work i hope 2020-12-16 13:46:36 -05:00
Skillz4Killz a65a6e3bde messages are annoying 2020-12-16 12:24:22 -05:00
Skillz4Killz 370f397344 fix the bugs my nuke opened 2020-12-15 18:06:16 -05:00
Skillz4Killz aa39b1b62f fmt 2020-12-15 17:57:02 -05:00
Skillz4Killz 2f14cf75ac role stuff 2020-12-15 17:52:58 -05:00
Skillz4Killz 7559ad68cc nuke this bug 2020-12-15 17:52:19 -05:00
Skillz4Killz 6da6965878 role getters 2020-12-15 15:32:14 -05:00
Skillz4Killz e79e7af2cb this is why i hate typings 2020-12-15 15:00:55 -05:00
Skillz4Killz dc9b0a78ec channels with getters 2020-12-15 14:53:28 -05:00
Skillz4Killz 1a578d9fdc createNewProp 2020-12-15 14:04:32 -05:00
ITOH 3702925d03 feat: new webhook endpoints (#253)
* commit changes

* Add max message length error
2020-12-14 16:13:38 +04:00
ayntee 6ba289199a style: format source files 2020-12-11 01:08:12 +04:00
Skillz4Killz 6437274958 fix: members intent fetching (#229)
* fixes fetchMembers #223

* Update guild.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>
2020-12-10 19:27:17 +04:00
Ayyan d1b07f5f2c Merge pull request #245 from discordeno/ws-close-msgs
feat: better websocket close error messages
2020-12-10 19:20:19 +04:00
Ayyan ef1df42840 Update permissions.ts 2020-12-10 18:48:10 +04:00
Ayyan 8da1c5ca9b Update requestManager.ts 2020-12-10 17:59:14 +04:00
Ayyan d84e0887c3 Merge pull request #243 from itohatweb/dry-1
refactor: replace bitwise calculation with calculateBits()
2020-12-10 12:55:05 +04:00
Ayyan a70623652b Update shard.ts 2020-12-10 12:47:28 +04:00
ITOH 77890fe9f0 Remove editChannelOverwrite() 2020-12-10 08:10:33 +01:00
ITOH 20c289308d 1st Review changes 2020-12-09 22:55:23 +01:00
Skillz4Killz 61a7858813 Merge pull request #240 from discordeno/fix-higherRolePosition
fix: if bot is guild owner, return true
2020-12-09 16:11:04 -05:00
ITOH 56aaef3d2f Replace bit perm calculating with function 2020-12-09 21:09:21 +01:00
ITOH 88730266ff Bug fix 2020-12-09 16:50:20 +01:00
ITOH af2a398318 Add nicer Way to edit Channel Permission 2020-12-09 16:23:45 +01:00
Ayyan e2440f29b0 chore: add an explanation comment 2020-12-09 11:41:39 +04:00
ITOH 24d4489ea4 refactor!: change certain events args order (#238)
* Make them Optional

* Allow/Deny changed to Strings in v8

* Revert "Allow/Deny changed to Strings in v8"

This reverts commit 3ffb55705c.

* Revert "Revert "Allow/Deny changed to Strings in v8""

This reverts commit 4fb7ef271e.

* Revert "Revert "Revert "Allow/Deny changed to Strings in v8"""

This reverts commit d5a020e307.
2020-12-09 11:20:45 +04:00