Dorian Oszczęda
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
ITOH
03996c5f58
refactor: revert "feat: base plugin lib idea ( #2308 )" ( #2336 )
...
* Revert "feat: base plugin lib idea (#2308 )"
This reverts commit ffe7cdbc6f .
* fmt
2022-07-02 14:24:43 +01:00
Skillz4Killz
ffe7cdbc6f
feat: base plugin lib idea ( #2308 )
...
* feat: base plugin lib idea
* fix: stuff
* fmt
* fix: imports and exports
* fix: errors & tests
* fix: remove logs
2022-06-18 18:46:37 -04: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
Skillz4Killz
8aaea9f339
refactor!: move dirs outside of src/ ( #2032 )
2022-02-11 09:49:53 +00:00