def _removeuser_casino(self, ctx, user: discord.Member):
"""Remove a user from casino"""
author = ctx.message.author
super().check_server_settings(author.server)
if not super().membership_exists(user):
msg = _("This user is not a member of the casino.")
else:
await self.bot.say(_("Are you sure you want to remove player data for {}? Type {} to "
"confirm.").format(user.name, user.name))
response = await self.bot.wait_for_message(timeout=15, author=author)
if response is None:
msg = _("No response. Player removal cancelled.")
elif response.content.title() == user.name:
super().remove_membership(user)
msg = _("{}\'s casino data has been removed by {}.").format(user.name, author.name)
else:
msg = _("Incorrect name. Cancelling player removal.")
await self.bot.say(msg)
评论列表
文章目录