mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
im thick
This commit is contained in:
parent
6cf0d77ef7
commit
1aa2f4c510
1 changed files with 7 additions and 6 deletions
|
@ -118,15 +118,16 @@ class VerifyCog(commands.Cog):
|
||||||
@discord.guild_only()
|
@discord.guild_only()
|
||||||
async def get_b_number(self, ctx: discord.ApplicationContext, member: discord.Member):
|
async def get_b_number(self, ctx: discord.ApplicationContext, member: discord.Member):
|
||||||
try:
|
try:
|
||||||
student: Student = await Student.objects.get(user_id=ctx.author.id)
|
student: Student = await Student.objects.get(user_id=member.id)
|
||||||
return await ctx.respond(
|
return await ctx.respond(
|
||||||
f"{member.mention}'s B number is saved as {student.id!r}.",
|
f"{member.mention}'s B number is saved as {student.id!r}.",
|
||||||
|
ephemeral=True,
|
||||||
allowed_mentions=discord.AllowedMentions.none()
|
allowed_mentions=discord.AllowedMentions.none()
|
||||||
)
|
)
|
||||||
except orm.NoMatch:
|
except orm.NoMatch:
|
||||||
pass
|
|
||||||
return await ctx.respond(
|
return await ctx.respond(
|
||||||
f"{member.mention} has no saved B number.",
|
f"{member.mention} has no saved B number.",
|
||||||
|
ephemeral=True,
|
||||||
allowed_mentions=discord.AllowedMentions.none()
|
allowed_mentions=discord.AllowedMentions.none()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue