def _role_setlottery(self, ctx, role: discord.Role):
"""Sets the role required to track and view stats.
Must be a role that exists on your server. If you delete this role
you will need to update lottery with this command to the new role.
Otherwise, no one will be able to view their stats, but it will still
track if they were able to signup.
By default this command is set to @everyone, and anyone can join.
"""
server = ctx.message.server
settings = self.check_server_settings(server)
settings["Config"]["Role"] = role.name
self.save_system()
await self.bot.say("Changed the membership role to {}".format(role.name))
# ================== Helper Functions ===================================
评论列表
文章目录