1.3.1
This commit is contained in:
parent
eb576ea15d
commit
8bed6ca308
@ -21,7 +21,20 @@ class CUtil(Cog):
|
|||||||
await ctx.respond(embed=Default_Embed.register_sucess())
|
await ctx.respond(embed=Default_Embed.register_sucess())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await ctx.respond(embed=Default_Embed.register_failed())
|
await ctx.respond(embed=Default_Embed.register_failed())
|
||||||
|
|
||||||
|
@guild_only()
|
||||||
|
@has_permissions(administrator=True)
|
||||||
|
@cooldown(1, 10, BucketType.user)
|
||||||
|
@slash_command(name="서버탈퇴", description="서버에서 탈퇴합니다.")
|
||||||
|
async def _leave(self, ctx: Context):
|
||||||
|
try:
|
||||||
|
if not await database.get_guild(ctx.guild.id): return await ctx.respond(embed=Default_Embed.not_register(), ephemeral=True)
|
||||||
|
#await database.leave_guild(ctx.guild.id)
|
||||||
|
await ctx.respond(embed=Default_Embed.leave_sucess())
|
||||||
|
except Exception as e:
|
||||||
|
await ctx.respond(embed=Default_Embed.leave_failed())
|
||||||
|
|
||||||
|
|
||||||
@guild_only()
|
@guild_only()
|
||||||
@cooldown(1, 10, BucketType.user)
|
@cooldown(1, 10, BucketType.user)
|
||||||
@slash_command(name="봇정보", description="봇의 정보를 확인합니다.")
|
@slash_command(name="봇정보", description="봇의 정보를 확인합니다.")
|
||||||
|
Loading…
Reference in New Issue
Block a user