Commit Graph

5164 Commits

Author SHA1 Message Date
Skillz4Killz 2829b1d064 fix: stickers tests 2022-10-03 19:15:55 +00:00
LTS20050703 e7b3a1fff9 tests: fix stickers test (#2497)
* tests: fix stickers test

* tests: fix stickers size must be 320x320

* deno fmt

* Update README.md

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-10-02 12:24:43 -04:00
Skillz4Killz 05e2d6cbe1 Update test.yml 2022-10-02 12:19:22 -04:00
Skillz4Killz c7c1d86338 fix: remove emojis from readme 2022-10-01 18:14:30 +00:00
Skillz4Killz b4576851cf fix: disable sticker tests 2022-10-01 18:08:50 +00:00
LTS20050703 39a806ff9c fix: errors (#2496)
* fix: errors

* fix: err can be undefined

* tests: fix sticker tests

* fix: create channel require name

* fix: sticker helpers and tests

* tests: delete channel after tested guild stickers
2022-10-01 12:14:59 -04:00
Yaikava e410da016e 🐛 - fix: bot.helpers.editFollowUpMessage - id conversion (#2495) 2022-09-30 17:08:08 -05:00
ITOH 8fa7e89e8c fix(helpers): edit interaction responses & webhook messages does not update files (#2483)
Closes: #2482

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-30 08:41:09 -05:00
LTS20050703 357376b954 BREAKING(types): add animated banner to guild features (#2489)
* types/shared: add animated banner to guild features

* tranformers/toggles: getter for guild features
2022-09-30 08:31:20 -05:00
凱恩Kane f38373e0fb fix(transformers): transform required field for InputText (#2494)
* transform required field for InputText

* missing TextInput type
2022-09-30 08:29:14 -05:00
Luan Caliel a6ec59aad0 fix(transformers): add min and max length to text input components (#2492)
* fix: add min and max length to text input components

* docs: add dots and commas

* fix: add semicolon

* fix: add semicolon

* fix: add min and max input length to transform component
2022-09-30 08:28:40 -05:00
LTS20050703 f8895fafc0 fix: createInvite doesnt pass reason (#2491) 2022-09-28 12:54:04 -04:00
LTS20050703 4de2140151 workflows/test: check plugins (#2487) 2022-09-23 13:05:09 -04:00
LTS20050703 19c89dd1c1 tests: rate limit test (#2485)
* tests: rate limit test

* tests/misc: rateLimit.test promise.all
2022-09-23 13:04:04 -04:00
deepsarda e4d66894e5 Refactor(readme): improve readme (#2484)
* Refactor(readme): improve readme

Reword the readme to make it easier to understand.

Add amethyst to the framework section

* refator(src): Format

* refactor(src): format
2022-09-22 11:41:31 -04:00
LTS20050703 bf70526029 fix(plugins): errors caused by bigstring support (#2486) 2022-09-22 11:40:41 -04:00
LTS20050703 17132aaf61 feat(helpers): add stickers helpers (#2466)
* helpers: add stickers helpers

* deno fmt

* undo move getNitroStickerPack to stickers

* helpers/stickers: fix jsdocs

* plugins/permissions: check stickers permissions

* plugins/validations: validate stickers stuff

* tests: stickers unit tests

* helpers/stickers: add support for reason

* plugins/permissions: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS

* tests/stickers: delete sticker after test
createGuildSticker: add send sticker test
getGuildStickers: create another sticker then test > 1 stickers
2022-09-22 11:31:41 -04:00
Skillz4Killz f0f9791ccd fix: stupid fmt do urself 2022-09-20 03:53:07 +00:00
Skillz4Killz b7046f23b8 release: 16.0.1 16.0.1 2022-09-20 03:52:48 +00:00
Skillz4Killz 70df12347e Merge branch 'main' of https://github.com/discordeno/discordeno into main 2022-09-20 03:52:23 +00:00
Skillz4Killz acabe468ae fix: 429 handling bug 2022-09-20 03:52:19 +00:00
ITOH 23771ea949 feat(types)!: add two_way_link to DiscordConnection (#2481)
When the connection has a corresponding thrid party OAuth2 token
`two_way_link` will be set to `true`.

Reference: https://github.com/discordeno/discordeno/issues/2479

Closes: #2479
2022-09-17 17:06:45 -04:00
Skillz4Killz c8275fcadc Update constants.ts 16.0.0 2022-09-17 11:17:13 -05:00
LTS20050703 e88a63770b BREAKING: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS (#2473)
* types: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS

* deno fmt

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: ITOH <to@itoh.at>
2022-09-17 11:12:42 -05:00
LTS20050703 7198bba049 BREAKING: Remove server discovery helpers due to lack of support (#2464)
* Remove server discovery helpers due to lack of support
The helpers found under `/helpers/discovery` directory are undocumented and not for public bot use.

* delete discovery test and permission check

* deno fmt
2022-09-17 11:11:31 -05:00
Skillz4Killz a4268fae44 Update constants.ts 15.0.4 2022-09-17 11:10:07 -05:00
ITOH 52cf958b1d fix(dnt): private name errors 2022-09-17 18:00:15 +02:00
Skillz4Killz b0d7a7bf28 fix: bigstring type in helpers plugin 2022-09-17 15:46:03 +00:00
ITOH 75abd56f7a Merge branch 'main' of github.com:discordeno/discordeno 2022-09-17 17:22:16 +02:00
ITOH 6ced7044ff fix(dnt): undici security vulnerability 2022-09-17 17:22:03 +02:00
ITOH 0b6471cc1d chore(FUNDING): move to github sponsors 2022-09-17 16:17:37 +01:00
Skillz4Killz 3a5bdce32d feat: helpers support strings in args (#2478)
* fix: helpers support strings in args

* fix: fmt
2022-09-15 20:59:02 -05:00
meister03 b892848a69 Release: 15.0.3 (#2477) 15.0.3 2022-09-15 13:53:37 -05:00
meister03 e431e0e044 fix: Rest proxy error (#2471)
* Rebase Update on main

* Rebase Update on main

* Rebase Update on main

* Fix deno fmt

Co-authored-by: meister03 <meisterpi@gmail.com>
2022-09-15 11:23:49 -04:00
LTS20050703 d39abe147f plugins/permissions: check channel type and implicit permissions (#2468)
* plugins/permissions: check channel type and implicit permissions

* deno fmt

* refactor: plugins/permissions

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-15 11:22:52 -04:00
LTS20050703 9426f4e2de fix(plugins): type errors (#2472)
* fix plugins

* deno fmt
2022-09-15 10:45:54 -04:00
Skillz4Killz a49c7499cb Update sendMessage.ts 2022-09-14 12:07:11 -05:00
LTS20050703 bc44a2feb1 feat(plugins/validations): sendMessage at least one prop + support stickers (#2467)
When creating a message, apps must provide a value for **at least one of** `content`, `embeds`, `sticker_ids`, `components`, or `files[n]`.
https://discord.com/developers/docs/resources/channel#create-message-jsonform-params
2022-09-14 11:53:49 -05:00
LTS20050703 1bbb992a71 fix: enableValidationPlugin should return whatever it's passed in (#2463) 2022-09-13 14:43:18 -05:00
Skillz4Killz 8caee2c74b Update constants.ts 15.0.2 2022-09-13 14:25:01 -05:00
Skillz4Killz e2a01b1143 fix(gw): thx dv8. invalid condition on identify 2022-09-13 18:09:23 +00:00
Skillz4Killz dfa3adc881 HOTFIX: 15.0.1 fix resume url query params 15.0.1 2022-09-12 17:32:43 +00:00
LTS20050703 150b5d45dd Release: Discordeno@15.0.0 (#2462) 15.0.0 2022-09-12 11:56:07 -05:00
LTS20050703 b4a823aba1 feat: Validation Plugin (#2451)
* Plugins/Permissions: FIX PARITY ISSUES
What is parity issues? Parity issues are files that exist but structured one way in the base/vanilla discordeno library, and structured another way in the permisison plugin.

* deno fmt

* plugins/permissions: nuke validations

* plugins/permissions VALIDATIONS -> plugins/validations

* plugins/validations: slash commands max 4000 chars

* fix module not found
2022-09-12 08:57:59 -05:00
LTS20050703 16f109ad43 chore: WithReason type cleanup (#2449)
* type WithReason<T> = T & { reason?: string }

* deno fmt (1.25.2)

* WithReason: jsdoc comments for reason

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* deno fmt

* types: WithReason type -> WithReason interface

* Fix: Some helpers missing support for reason

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-12 08:52:03 -05:00
LTS20050703 b502c14ffb feat: add union type DiscordConnectionServices (#2458)
* add enum DiscordConnectionServices

* DiscordConnectionServices enum -> union type
2022-09-12 08:49:24 -05:00
LTS20050703 82653ec0d8 feat: add nonce to sendMessage options (#2459)
* add nonce to sendMessage options

* add nonce to (Discordeno)Message
2022-09-12 08:48:38 -05:00
LTS20050703 08c9f2395b chore: Add note about missing webhook following source (#2460) 2022-09-11 20:08:40 -05:00
LTS20050703 67e137fcdc feat(types): add InvitesDisabled to GuildFeatures (#2439)
* types/shared: add InvitesDisabled to GuildFeatures

* add AutoModeration, InvitesDisabled to GuildToggle

* GuildToggles: add getters

* deno fmt (1.25.2)

* jsdoc comments
2022-09-11 12:05:17 -05:00
Dorian Oszczęda ec6b7459bd fix: Invalid HTTP method in upserting commands. (#2448)
* fix: Export of `ApplicationCommandOptionChoice`.

* fix: Invalid HTTP method for upserting application commands.

* fmt: Run Deno formatter.

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-09 19:43:32 -05:00