This commit is contained in:
insert 2024-08-11 13:24:39 -04:00
parent 8c3fed91ff
commit 1e2cc628ac
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -86,7 +86,7 @@ class ApplicationModal(nextcord.ui.Modal):
)
print(self.image.value)
if urlparse(self.image.value).netloc != 'media.discordapp.net' and urlparse(self.image.value).netloc != 'cdn.discordapp.com':
await interaction.send_message(f"for security reasons, the bot only accepts images from media.discordapp.net or cdn.discordapp.com", ephemeral=True)
await interaction.send(f"for security reasons, the bot only accepts images from media.discordapp.net or cdn.discordapp.com", ephemeral=True)
return
async with aiohttp.ClientSession() as session:
async with session.get(self.image.value) as response: