Dorian Oszczęda
05a20c3bf8
refactor(bot, gateway, rest)!: Improve the interface of the createBot() function. ( #3422 )
...
* misc: Make the token a required property on the rest manager.
* refactor: Make unnecessarily required properties optional.
* misc: Improve interface for `createBot()` and allow passing in `transformers`/`handlers`.
* fix: Test made redundant by changes still being included.
* fix: Missing non-null assertions.
* fix: Benchmarks failing.
* misc: Remove `cache.requestMembers.pending` as an exposed option.
* style: Switch back to interface approach.
2024-03-07 22:39:48 -06:00
Dorian Oszczęda
100039b1bd
feat: Add voice state to the desired properties object. ( #3424 )
...
* feat: Add voice state to the desired properties object.
* chore: Remove unnecessary check.
2024-02-21 14:20:23 +00:00
Dorian Oszczęda
999fdb2c45
fix: Not being able to clear member timeout. ( #2556 )
2022-10-27 09:21:40 -05:00
Dorian Oszczęda and Skillz4Killz
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
Dorian Oszczęda
bb63f2f7e8
fix: Add missing user property. ( #2398 )
2022-08-29 10:47:07 -04:00
Dorian Oszczęda
ddf2046554
fix: Add missing properties to application command create/update payloads. ( #2397 )
...
* misc: Add `descriptionLocalizations` to properties omitted for context commands.
* style: 'option/s' -> 'command/s'.
* fix: Add missing properties to payloads.
2022-08-28 14:12:41 -04:00
Dorian Oszczęda and Skillz4Killz
c9659bca4c
feat!: Add return types to helper functions. ( #2395 )
...
* feat: Add return types to forum channel helpers.
* fix: Use Discord-defined property names. Add `flags` property.
* feat: Add return types to thread channel helpers.
* feat: Add return types to channel helpers.
* feat: Add return types to server discovery helpers.
* misc!: Consistency: 'remove' -> 'delete'.
* misc!: Add `get` keyword to function and file name.
* feat: Add return types to emoji helpers.
* misc!: Remove unused `bot` parameter. Capitalise 'URL'.
* feat: Add return types to guild automod helpers.
* feat: Add return types to guild scheduled event helpers.
* misc!: Consistency: Rename `emojiURL` to `getEmojiURL`.
* feat: Add return types to guild helpers.
* misc!: Consistency: Add 'get' keyword to function and file names.
* feat: Add return types to invite helpers.
* feat: Add return types to integration helpers.
* feat: Add return types to application command helpers.
* feat: Add return types to followup message helpers.
* feat: Add return types to interaction response helpers.
* feat: Add return type to `createInvite()`.
* feat: Add return types to member helpers.
* misc!: Consistency: Add 'get' keyword to function and file names.
* feat: Add return types to message helpers.
* misc!: Consistency: 'remove' -> 'delete'.
* fix: Use `slice()` to prevent unwanted side effects.
* feat: Add return types to miscellaneous helpers.
* misc!: Consistency: Add 'get' keyword to function and file names.
* feat: Add return types to role helpers.
* feat: Add return types to oauth helpers.
* feat: Add return types to template helpers.
* misc!: Consistency: Add 'guild' keyword to name.
* feat: Add return types to voice helpers.
* fix: Name function correctly.
* feat: Add return types to webhook helpers.
* misc!: Consistency: Rename `sendWebhook` to `sendWebhookMessage`.
* misc: Update exports.
* fix: Imports.
* fix: Change return collection key type from `string` to `bigint`. Remove redundant code.
* misc: Remove `undefined` from `runMethod()` return type.
* style: Remove redundant types.
* style: Rename endpoint call result variables to `result` and `results`.
* misc: Reintroduce `bot` as first parameter.
* misc: Adapt tests to changes made to helpers.
* fix: Object being transformed twice.
* style: Improve naming consistency of remaining files.
* misc: `bigint` -> `number`.
* style: Remove explicit `undefined` return.
* style: Remove `void` operator in favour of generic type.
* misc: Add missing `await` keyword.
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
* style: Make `reason` property optional instead of `undefined`-able.
* misc: Write out properties manually instead of using the spread operator.
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com >
2022-08-28 07:17:08 -04:00