mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Refactoring clean messages
This commit is contained in:
@@ -201,10 +201,10 @@ class Music(commands.Cog):
|
||||
if message.author == self.__bot.user:
|
||||
if len(message.embeds) > 0:
|
||||
embed = message.embeds[0]
|
||||
fields = embed.fields
|
||||
if len(embed.fields) > 0:
|
||||
if embed.fields[0].name == 'Uploader:':
|
||||
await message.delete()
|
||||
|
||||
if fields != discord.Embed.EmptyEmbed:
|
||||
await message.delete()
|
||||
except:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user