$isValidImageURL
Returns `true` if the URL is and image formatted URL. Otherwise, bot returns `false`.

FUNCTION USAGE

  • $isValidImageURL[URL]

Properties:

URL - Supply a URL.

Example 1: Returns false.

1
bot.Command({
2
name: "test",
3
code: `
4
$isValidImageURL[https://docs.db-script.com/commands/isvalidimageurl]
5
`
6
})
Copied!

Example 2: Returns true.

1
bot.Command({
2
name: "test",
3
code: `
4
$isValidImageURL[https://cdn.discordapp.com/avatars/600824086943367168/a_c50f29973b6821235d47e7b7388d7b8b.gif?size=1024]
5
`
6
})
Copied!
Last modified 11mo ago
Copy link
Contents
Properties: