bugfix: joint
This commit is contained in:
		| @@ -1311,7 +1311,7 @@ class Misc(commands.Cog): | ||||
|  | ||||
|         if not recipient: | ||||
|             recipient = authorDisplay.strip() | ||||
|             recipient_normal: str = ctx.user.mention | ||||
|             recipient_normal: str = ctx.author.mention | ||||
|         else: | ||||
|             recipient_normal = recipient | ||||
|             if discord.utils.raw_mentions(recipient): | ||||
| @@ -1333,11 +1333,11 @@ class Misc(commands.Cog): | ||||
|                 raise MiscException("Failed to get strain from db.") | ||||
|             (choice_strain, choice_desc) = strain | ||||
|             escaped_description = discord.utils.escape_markdown(choice_desc.strip()) | ||||
|             await ctx.send_followup(f"*hands **{recipient_normal}** a joint rolled up with some **{choice_strain}***", username="Joint Granter") | ||||
|             await ctx.respond(f"*hands **{recipient_normal}** a joint rolled up with some **{choice_strain}***") | ||||
|             embed: discord.Embed = discord.Embed(title=choice_strain, | ||||
|                                   description=f"*{escaped_description}*") | ||||
|             await self.util.increment_counter("joints") | ||||
|             return await ctx.send_followup(embed=embed, username="Joint Granter") | ||||
|             return await ctx.respond(embed=embed) | ||||
|         except Exception as e: | ||||
|             traceback.print_exc() | ||||
|             return await ctx.respond(f"Failed: {str(e)}") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user