FIx _accent_colour being improperly typehinted
#57
Reference in New Issue
Block a user
No description provided.
Delete Branch "typehinting-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
_accent_colourindiscord.Userwas typehinted as aOptional[str]when it's stated to be anOptional[int](or, well?integer) by the Discord API docs and is treated by the library as anOptional[int]whenUser.accent_colouris called. This PR is a quick change to fix that (and make Pylance happy).Checklist
Looks good, checked at runtime and it is indeed
int.