delete messages
This commit is contained in:
parent
ee2ebe4274
commit
ab14f9da3c
@ -305,6 +305,11 @@ class Book:
|
|||||||
await m.edit(content='Message Timed out.')
|
await m.edit(content='Message Timed out.')
|
||||||
else:
|
else:
|
||||||
self._current_page = int(msg.content) - 1
|
self._current_page = int(msg.content) - 1
|
||||||
|
try:
|
||||||
|
await m.delete()
|
||||||
|
await msg.delete()
|
||||||
|
except discord.Forbidden:
|
||||||
|
pass
|
||||||
elif str(reaction.emoji) == self._bot.book_emojis['unlock']:
|
elif str(reaction.emoji) == self._bot.book_emojis['unlock']:
|
||||||
self._locked = False
|
self._locked = False
|
||||||
await self._message.remove_reaction(reaction, self._channel.guild.me)
|
await self._message.remove_reaction(reaction, self._channel.guild.me)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user