Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Utilised Tanjun's new features to reduce boilerplate (2) #63

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

fdnt7
Copy link
Owner

@fdnt7 fdnt7 commented Sep 26, 2022

? MaybeIterable -> IterableOr
+ AnyOr
* Changed Typing around util funcs
| * EitherContext -> AnyContextType
| * Contextish -> ContextishType
| * GuildInferableEvents -> GuildAwareEventType
| * GuildOrInferable -> GuildOrAwareType
| * RestInferable -> RESTAwareType
| - GuildOrRESTInferable
| - MaybeClientInferable (replaced with AnyOr[ClientAware]
| * with_annotated_args(...) -> with_annotated_args_wrapped(...)
| + MaybeGuildIDAware
| + ChannelAware
| + ClientAware
| + Contextish
| + RESTAware
| + RESTAwareAware
| + GuildContextish
| + ClientAwareGuildContextish
| + IntCastable
| * Reduced the use of AnyContextType
* Every message cmds declaration will now be put above slash cmds
* Updated hikari-tanjun to 2.7.0a1
| * Massively reduced boilerplate in group cmds /w .as_sub_command(...) decorator
| * Made every to-do'd command use tanjun's annotation declaration system

`?` `MaybeIterable` -> `IterableOr`
`+` `AnyOr`
`*` Changed Typing around util funcs
 | `*` `EitherContext` -> `AnyContextType`
 | `*` `Contextish` -> `ContextishType`
 | `*` `GuildInferableEvents` -> `GuildAwareEventType`
 | `*` `GuildOrInferable` -> `GuildOrAwareType`
 | `*` `RestInferable` -> `RESTAwareType`
 | `-` `GuildOrRESTInferable`
 | `-` `MaybeClientInferable` (replaced with `AnyOr[ClientAware]`
 | `*` `with_annotated_args(...)` -> `with_annotated_args_wrapped(...)`
 | `+` `MaybeGuildIDAware`
 | `+` `ChannelAware`
 | `+` `ClientAware`
 | `+` `Contextish`
 | `+` `RESTAware`
 | `+` `RESTAwareAware`
 | `+` `GuildContextish`
 | `+` `ClientAwareGuildContextish`
 | `+` `IntCastable`
 | `*` Reduced the use of `AnyContextType`
`*` Every message cmds declaration will now be put above slash cmds
`*` Updated `hikari-tanjun` to `2.7.0a1`
 | `*` Massively reduced boilerplate in group cmds /w `.as_sub_command(...)` decorator
 | `*` Made every to-do'd command use tanjun's annotation declaration system
@fdnt7 fdnt7 self-assigned this Sep 26, 2022
@fdnt7 fdnt7 added the optimization Optimizations to the code label Sep 26, 2022
@fdnt7 fdnt7 merged commit 16c75c9 into main Sep 26, 2022
@fdnt7 fdnt7 deleted the update-tanjun-version branch September 26, 2022 07:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
optimization Optimizations to the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant