New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed crash originated in bank.set_balance
#2997
Fixed crash originated in bank.set_balance
#2997
Conversation
`[p]bankset maxbal` can be used to set the maximum bank balance Signed-off-by: Guy <guyreis96@gmail.com>
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
If this is fixing a bug introduced in dev, the changelog should probably be |
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
The two functions affected by this change need to have their docstrings and typehints updated accordingly. Both now accept Union[discord.Member, discord.User]
and both now raise RuntimeError
(from the get_
s they use) when a user is passed and the bank is server based.
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
All sorted, thanks for the review Flame! |
The wording of the RuntimeError's description "guild was not provided" makes it seems like there should be a way to pass a guild to the functions. This should be changed to something that references how a user was used and a member is required. |
Signed-off-by: guyre <27962761+drapersniper@users.noreply.github.com>
Type
Description of the changes
Fixed crash seen in DM when calling
bank.set_balance
which was introduced in #2926