suppression du double message quand un meme de reddit ne rentre pas dans un embed
This commit is contained in:
parent
06462290d5
commit
65c01f47bd
1 changed files with 1 additions and 2 deletions
|
@ -51,8 +51,7 @@ class Internet(commands.Cog):
|
||||||
embed.set_image(url = submission.url)
|
embed.set_image(url = submission.url)
|
||||||
message = await ctx.send(embed = embed)
|
message = await ctx.send(embed = embed)
|
||||||
else:
|
else:
|
||||||
await ctx.send(f"```r/{subredditchoix} pour {ctx.author.name}```\n{submission.url}")
|
message = await ctx.send(f"```r/{subredditchoix} pour {ctx.author.name}```\n{submission.url}")
|
||||||
message = await ctx.send("```Meme de Reddit```")
|
|
||||||
if fromSlash != True:
|
if fromSlash != True:
|
||||||
await ctx.message.add_reaction(emoji = '✅')
|
await ctx.message.add_reaction(emoji = '✅')
|
||||||
await message.add_reaction('👍')
|
await message.add_reaction('👍')
|
||||||
|
|
Reference in a new issue