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