mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +00:00
Fix GoTo breaking in DMs
This commit is contained in:
parent
254a0d95b4
commit
f7c7247b92
1 changed files with 6 additions and 2 deletions
|
@ -833,6 +833,8 @@ class MsG:
|
||||||
icon_url=self._get_score(values[c - 1]['score']))
|
icon_url=self._get_score(values[c - 1]['score']))
|
||||||
embed.set_image(url=values[c - 1]['file_url'])
|
embed.set_image(url=values[c - 1]['file_url'])
|
||||||
|
|
||||||
|
if ctx.channel is d.TextChannel:
|
||||||
|
with suppress(errext.CheckFailure):
|
||||||
await number.delete()
|
await number.delete()
|
||||||
|
|
||||||
await paginator.edit(content='\N{HEAVY BLACK HEART}' if keys[c - 1] in hearted.keys() else None, embed=embed)
|
await paginator.edit(content='\N{HEAVY BLACK HEART}' if keys[c - 1] in hearted.keys() else None, embed=embed)
|
||||||
|
@ -973,6 +975,8 @@ class MsG:
|
||||||
icon_url=self._get_score(values[c - 1]['score']))
|
icon_url=self._get_score(values[c - 1]['score']))
|
||||||
embed.set_image(url=values[c - 1]['file_url'])
|
embed.set_image(url=values[c - 1]['file_url'])
|
||||||
|
|
||||||
|
if ctx.channel is d.TextChannel:
|
||||||
|
with suppress(errext.CheckFailure):
|
||||||
await number.delete()
|
await number.delete()
|
||||||
|
|
||||||
await paginator.edit(content='\N{HEAVY BLACK HEART}' if keys[c - 1] in hearted.keys() else None, embed=embed)
|
await paginator.edit(content='\N{HEAVY BLACK HEART}' if keys[c - 1] in hearted.keys() else None, embed=embed)
|
||||||
|
|
Loading…
Reference in a new issue