def remove(self, ctx):
"""Remove your server's default region"""
db = database.Database('guilds.db')
try:
db.find_entry(ctx.guild.id)
db.remove_entry(ctx.guild.id)
db.close_connection()
embed = discord.Embed(
title='Success!',
description="Default region for {0} has been cleared!".format(
ctx.guild.name),
colour=0x1AFFA7)
utils.footer(ctx, embed)
await ctx.send("", embed=embed)
except TypeError:
db.close_connection()
embed = discord.Embed(
title="Error!",
description="A default region for this server has not been set!",
colour=0xCA0147)
utils.footer(ctx, embed)
await ctx.send("", embed=embed)
评论列表
文章目录