Skillz4Killz
d6a8f757ae
fix: cleanup bad tests code
2022-05-29 14:53:51 +00:00
Skillz4Killz
ff1f7f7114
fix: add proxy rest for unit tests
2022-05-29 14:53:28 +00:00
Skillz4Killz
5379a2b8ce
fix(fmt): i hate deno fmt
2022-05-28 13:40:09 +00:00
Skillz4Killz
0aff36afbe
fix(utils): add hasProperty back. 2x faster than Reflect.has
2022-05-28 13:39:46 +00:00
Skillz4Killz
28974f2497
fix(utils): remove hasProperty. Unused function
2022-05-28 13:28:11 +00:00
Skillz4Killz
be51508245
fix(fmt): deno fmt dumby
2022-05-28 13:19:48 +00:00
Skillz4Killz
05b86d2ea3
fix(tests): migrate invite related tests
2022-05-28 13:19:34 +00:00
Skillz4Killz
8a76cdac0f
Merge branch 'main' of https://github.com/discordeno/discordeno into main
2022-05-28 13:07:40 +00:00
Skillz4Killz
7db661180f
fix(tests): migrate guild url unit tests
2022-05-27 22:55:51 +00:00
ITOH
1423df5b8d
release: 13.0.0-rc43
13.0.0-rc43
2022-05-27 23:51:58 +02:00
ITOH
24f7718566
feat!: make createBot sync ( #2255 )
2022-05-27 23:50:39 +02:00
Skillz4Killz
10dff1ca50
fix(tests): migrate emoji related unit tests
2022-05-27 23:50:38 +02:00
Skillz4Killz
19ff286a6d
fix: rate limited unit tests from createBot async
2022-05-27 23:50:37 +02:00
Skillz4Killz
8eeb975161
fix: remove confusion, old examples
2022-05-27 23:50:37 +02:00
ITOH
4d3a01d314
release: 13.0.0-rc42
...
Fixed:
- pass intents to `gatewayConfig` in the `createBot` function
2022-05-27 23:48:18 +02:00
Skillz4Killz
08b56e0a19
fix(tests): migrate emoji related unit tests
2022-05-27 18:44:49 +00:00
Skillz4Killz
3e4e41067d
fix: rate limited unit tests from createBot async
2022-05-27 18:11:25 +00:00
Skillz4Killz
47d3c29dad
fix: remove confusion, old examples
2022-05-26 12:55:45 +00:00
ITOH
89c80ed236
release: 13.0.0-rc42
...
Fixed:
- pass intents to `gatewayConfig` in the `createBot` function
13.0.0-rc42
2022-05-25 23:05:40 +02:00
ITOH
c4ba54e4ee
fix(bot): pass intents to gatewayConfig ( #2253 )
2022-05-25 23:05:05 +02:00
ITOH
b5acaf11ad
release: 13.0.0-rc41
...
Too many changes to write changelog, please ask in the Discord.
13.0.0-rc41
2022-05-25 22:42:24 +02:00
Reboot-Codes and ITOH
0986fa9704
More BigBot Fixes ( #2233 )
...
* Add `.DS_Store` to `.gitignore`
* Format and improve DX.
* Add extra logging and fix gateway workers.
* Deno fmt.
* Be more explicit in `.env.example`.
* Add a `watch-bot` task and format.
* Deno FMT
* Deno FMT (all `template/bigbot` files)
Co-authored-by: ITOH <to@itoh.at >
2022-05-25 22:33:49 +02:00
LTS20050703 and ITOH
2018919fe2
feat(rest,types): slash command permissions v2 ( #2226 )
...
* Slash command perms v2
Closes : #2184
Upstream: discord/discord-api-docs@4a3b20a
- Nuke batchEditApplicationCommandPermissions (https://discord.com/developers/docs/interactions/application-commands#batch-edit-application-command-permissions )
- update JSDocs Comments (like, a lot, probably will revert unnecessary comments changes next commit)
- Add id to upsertApplicationCommands options
* fix typos
Co-authored-by: ITOH <to@itoh.at >
* docs: add regex to application command `name`
Co-authored-by: ITOH <to@itoh.at >
2022-05-25 22:32:47 +02:00
ITOH
b469c98527
refactor(gateway,types,util)!: finalize gateway code ( #2241 )
...
* push some cursed stuff
* bucket
* fix bugs and hack start ordered
* some management improvements
* more gw stuff
* f
* rename manager to gateway
* remove basic thing
* remove old stuff
* f
* fix imp
* fixes
2022-05-25 22:27:49 +02:00
ITOH
b00504ce07
perf(plugins/helpers,rest,site,template)!: uppercase rest methods ( #2252 )
...
* perf(plugins/helpers,rest,site,template)!: uppercase rest methods
There is no need for us to pass the methods in lower case and then use the `toUpperCase()` method everywhere. Therefore this PR changes every lowercase method to be uppercase (eg. `"get"` => `"GET"`).
* template is old version
2022-05-25 20:45:51 +02:00
ITOH
1edb3c2110
refactor(bot,plugins/helpers,rest,util)!: improve rest route handling ( #2248 )
...
* refactor(bot,helpers,plugins,rest,util)!: improve rest route handling
- rename endpoints constant to routes
- simplify routes code by removing bases and function calls
- url query params can now be passed to the route functions
* style: deno fmt
* fix base stuff
* suggestions
2022-05-25 20:35:25 +02:00
ITOH
bc2f66c773
release: 13.0.0-rc40
...
Added:
- `convertRestError` function so you can edit the error stack better/add additional handling
- `Collection#forceSet` method which ignores the `maxSize` limit of the collection
Changed:
- Intent calculation now needs to be done manually (eg. `Intents.Guilds | Intents.GuildMessages`) **BREAKING**
Fixed:
- `ApplicationCommandOption#required` is optional
- `createInvite` sending the wrong value for `target_application_id`
- `editApplicationCommandPermissions` needs a bearer token to access the related endpoint **BREAKING**
- `sendInteractionResponse` not uploading files
Removed:
- leftover console.log in the `spawnShards` and `processGlobalQueue` functions
13.0.0-rc40
2022-05-25 19:22:12 +02:00
ITOH
86116787be
Merge branch 'main' of github.com:discordeno/discordeno into main
2022-05-25 18:53:46 +02:00
ITOH
72fec3a4c6
fix(rest): sendInteractionResponse file upload ( #2239 )
...
* fix(rest): `sendInteractionResponse` file upload
* f
2022-05-25 15:38:13 +01:00
ITOH
be5bcb5bbc
fix(rest)!: editApplicationCommandPermissions ( #2238 )
...
* fix(rest)!: `editApplicationCommandPermissions`
- add `bearerToken` option
- add headers to `RestPayload`
- remove `batchEditApplicationCommandPermissions` since the related endpoint has been removed
* fix header prefix
2022-05-25 09:53:53 -04:00
ITOH
53d7b31041
refactor(.github,README,gateway,plugins/fileloader,tests,types)!: make intent calculation manual ( #2243 )
...
This changes the calculation of intents to be manual to the dev.
This is to improve overall consistency of our code base, also it is not a big drawback for users since intents are usually done once and then never (seldom) touched again.
2022-05-25 09:50:31 -04:00
凱恩Kane
f7f4b7c384
targetApplicationId missing ( #2244 )
2022-05-25 09:48:57 -04:00
ITOH
d7883855ec
refactor(.github,README,gateway,plugins/fileloader,tests,types)!: make intent calculation manual
...
This changes the calculation of intents to be manual to the dev.
This is to improve overall consistency of our code base, also it is not a big drawback for users since intents are usually done once and then never (seldom) touched again.
2022-05-24 23:16:01 +02:00
ITOH
3a5263c4e9
style: deno fmt
2022-05-24 22:01:44 +02:00
Endy
9610403b26
Made required optional for command option ( #2234 )
2022-05-22 08:39:08 -04:00
meister03 and meister03
5be45f5a77
Add forceSet option for collection ( #2232 )
...
* Add forceSet option for collection
* Use .forceSet approach instead oveer-complicated set options
Co-authored-by: meister03 <root@_HOSTNAME_>
2022-05-22 08:38:41 -04:00
meister03 and meister03
4e5c7869d9
Add Support for Custom Error Converter ( #2231 )
...
Co-authored-by: meister03 <root@_HOSTNAME_>
2022-05-19 19:54:05 -04:00
Skillz4Killz
f7e11d6ea6
fix: whoopsies
2022-05-18 18:55:19 +00:00
Skillz4Killz
92b6f27491
BREAKING: fixes shard spawning of final shard bug
13.0.0-rc39
2022-05-18 18:36:48 +00:00
Skillz4Killz
85acfd4c2e
fix: final shard bug not starting up
2022-05-18 18:32:47 +00:00
Skillz4Killz
a920c2be1b
fix: remove unused log
2022-05-18 17:05:06 +00:00
Skillz4Killz
bc2a7ade24
fix: bot id optional on createBot
2022-05-18 16:57:50 +00:00
Skillz4Killz
4c67ea3482
fix: make intents and events optional
2022-05-18 16:34:31 +00:00
Skillz4Killz
332c47bdcc
release: fix exports for helpers plugin
13.0.0-rc38
2022-05-18 16:18:46 +00:00
Skillz4Killz
21cb40eaa2
fix: add missing exports to helpers plugin
2022-05-18 16:17:45 +00:00
Skillz4Killz
c4310a5c30
release: rc37 fix plugins typings
13.0.0-rc37
2022-05-18 16:13:11 +00:00
Skillz4Killz
0258722f24
fix: return type of helpers plugin
2022-05-18 16:12:51 +00:00
Skillz4Killz
3f1c924b9c
fix: permissions plugin should return valid type
2022-05-18 16:04:02 +00:00
4aab0df69c
docs(rest,types): Update AuditLog related comments ( #2225 )
...
* deno fmt
* Update audit log interfaces
Closes : #2214
Upstream: https://github.com/discord/discord-api-docs/commit/618691228a5d8d5ffc1953cbd656f98a54d24cfb
Update GetAuditLogs interface
Update AuditLogEvents enum
Update DiscordAuditLog and DiscordAuditLogEntry interfaces JSDOcs
Update DiscordAuditLogChange interface (https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-exceptions )
* """fixed"""
* Fix typos
Co-authored-by: ITOH <to@itoh.at >
* deno fmt
Co-authored-by: ITOH <to@itoh.at >
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-05-16 08:45:56 -04:00
LTS20050703 and ITOH
6926ec1d29
docs(helpers,types): add discord doc links & remove leftover comments ( #2223 )
...
* deno fmt
* fix TODO comments and commented code
* revert changes to template
* remove reference
Co-authored-by: ITOH <to@itoh.at >
2022-05-15 14:15:03 -04:00