[no-ci] Add check to reference command
@@ -300,6 +300,11 @@ class Extras(commands.Cog):
async def reference(self, ctx, message: discord.Message, ref_text: bool = True, ref_image: bool = True):
"""Creates a embed with the contents of message. Helpers+ only"""
await ctx.message.delete()
+
+ # xnoeproofing:tm:
+ if not message.channel.permissions_for(ctx.author).read_messages:
+ return await ctx.send("bad xnoe, bad")
+
embed = discord.Embed(colour=gen_color(message.author.id), timestamp=message.created_at)
if ref_text and message.content:
embed.description = message.content
