Skip to content Skip to sidebar Skip to footer

Discord Py Attachments

I am creating a bot that creates a backup of discord guilds in mysql. (Basically it allows me to make a website that is an extension of the discord channel.) I am going to be downl

Solution 1:

The correct attribute name is Message.attachments as Patrick Haugh suggested. You could use the len() function on that to get the "size" of it since it's just a normal python list of discord.Attachment objects.

Solution 2:

if message.attachments: Simple as that!

Post a Comment for "Discord Py Attachments"