Commit Graph

323 Commits

Author SHA1 Message Date
ayntee
2a6d5ad070 idk 2020-12-26 20:26:51 +04:00
ayntee
69099e04fc Better debug type 2020-12-26 20:23:57 +04:00
ayntee
2c697a4d2d refactor: add gateway version to constants 2020-12-26 20:01:41 +04:00
ayntee
64884439db refactor(rest): move user agent to constants 2020-12-26 19:36:08 +04:00
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
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
Skillz4Killz
067b80e0eb fix max stack i hope 2020-12-16 14:28:20 -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
Ayyan
e16be8052c fix: if bot is guild owner, return true 2020-12-09 10:27:06 +04:00
ITOH
307c75c91e fix: allow/deny are strings in v8 (#239) 2020-12-09 09:31:34 +04:00
ITOH
7bdbcb76d6 refactor: centralize types (#235)
* Centralize types and structures

* Resolve Conflict

* Update cache.ts
2020-12-08 22:23:36 +04:00
Skillz4Killz
2eea47b63a fix: guildBan* events argument order (#233) 2020-12-07 23:11:36 +04:00
Skillz4Killz
edc86559fc Merge branch 'master' of https://github.com/discordeno/discordeno into next 2020-12-07 18:42:44 +00:00
Ayyan
7955eb923a fix: guildBanRemove() event not triggered 2020-12-07 22:35:30 +04:00
ITOH
69e7abdd78 style: format source files 2020-12-07 11:21:05 +01:00
Skillz4Killz
9ff30ad1d8 Update permissions.ts 2020-12-06 15:52:22 -05:00
Skillz4Killz
1eccf8aa05 Update guild.ts 2020-12-06 14:34:29 -05:00
Ayyan
d745457b6e Make linter happy :) 2020-12-05 12:07:36 +04:00
Ayyan
747858437f Update guild.ts 2020-12-04 20:20:49 +04:00
Ayyan
dbb0feabd6 Update guild.ts 2020-12-04 20:06:46 +04:00
Ayyan
5bf843b595 feat: better return type/value for createServer() 2020-12-04 20:05:01 +04:00
Waleed
b571cc3ae6 Fixing Bug on line 40 2020-12-03 12:04:17 -05:00
ayntee
6156db4617 Merge branch 'master' of https://github.com/Skillz4Killz/Discordeno into next 2020-11-30 19:32:58 +04:00