Skip to content

Commit 7553aa9

Browse files
authored
Made quote reply to the message (#24)
1 parent c8beef6 commit 7553aa9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

commanderbot_ext/ext/quote/quote_cog.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ async def construct_embed(self, msg_link: str, quotem: bool = False):
2727
@command(name="quote")
2828
async def cmd_quote(self, ctx: Context, msg_link: str):
2929
quote_embed = await self.construct_embed(msg_link)
30-
await ctx.send(f"{ctx.author.mention}\n{msg_link}", embed=quote_embed)
30+
await ctx.send(f"{msg_link}", embed=quote_embed, reference=ctx.message)
3131

3232
@command(name="quotem")
3333
async def cmd_quotem(self, ctx: Context, msg_link: str):
3434
quote_embed = await self.construct_embed(msg_link, quotem=True)
3535
await ctx.send(
36-
f"{ctx.author.mention} {quote_embed[1].mention}\n{msg_link}",
36+
f"{quote_embed[1].mention}\n{msg_link}",
3737
embed=quote_embed[0],
38+
reference=ctx.message
3839
)

0 commit comments

Comments
 (0)