[V3 Economy] guild -> server in [p]bank reset (#1530)

This commit is contained in:
bobloy 2018-04-16 15:37:29 -04:00 committed by palmtree5
parent 705d9b8238
commit c7b58aa65b

View File

@ -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()