Update
This commit is contained in:
parent
8c3fed91ff
commit
1e2cc628ac
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class ApplicationModal(nextcord.ui.Modal):
|
||||||
)
|
)
|
||||||
print(self.image.value)
|
print(self.image.value)
|
||||||
if urlparse(self.image.value).netloc != 'media.discordapp.net' and urlparse(self.image.value).netloc != 'cdn.discordapp.com':
|
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
|
return
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.get(self.image.value) as response:
|
async with session.get(self.image.value) as response:
|
||||||
|
|
Loading…
Reference in a new issue