mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -05:00
[V3 Economy] guild -> server in [p]bank reset (#1530)
This commit is contained in:
parent
705d9b8238
commit
c7b58aa65b
@ -211,19 +211,22 @@ class Economy:
|
|||||||
@guild_only_check()
|
@guild_only_check()
|
||||||
@check_global_setting_guildowner()
|
@check_global_setting_guildowner()
|
||||||
async def reset(self, ctx, confirmation: bool = False):
|
async def reset(self, ctx, confirmation: bool = False):
|
||||||
"""Deletes all guild's bank accounts"""
|
"""Deletes bank accounts"""
|
||||||
if confirmation is False:
|
if confirmation is False:
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
_("This will delete all bank accounts for {}.\nIf you're sure, type "
|
_("This will delete all bank accounts for {}.\nIf you're sure, type "
|
||||||
"`{}bank reset yes`").format(
|
"`{}bank reset yes`").format(
|
||||||
self.bot.user.name if await bank.is_global() else "this guild",
|
self.bot.user.name if await bank.is_global() else "this server",
|
||||||
ctx.prefix
|
ctx.prefix
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
await bank.wipe_bank()
|
await bank.wipe_bank()
|
||||||
await ctx.send(_("All bank accounts of this guild have been "
|
await ctx.send(_("All bank accounts for {} have been "
|
||||||
"deleted."))
|
"deleted.").format(
|
||||||
|
self.bot.user.name if await bank.is_global() else "this server"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@guild_only_check()
|
@guild_only_check()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user