Check if message contains a link; Discord.py

Use method in to check a substring inside a string.Example:

if 'https://' in word:
    # logic here


I'll try to use this logic bro!

test_string = "https://www.google.com"
test_list = ['.com', '.ru', '.net', '.org', '.info', '.biz', '.io', '.co', "https://", "http://"]
link_matches = [ele for ele in test_list if(ele in test_string)]

if link_matches: # Courtesy of my bro Jyr!
  print("I got a match bro")