channel = client.get_channel
if message.content.lower().startswith('experiment'):
moji = await client.get_channel.send("https://c.tenor.com/R_itimARcLAAAAAd/talking-ben-yes.gif")
emoji = [":blue_circle:"]
for experiment in emoji:
await client.add_reaction(emoji)
What I want the bot to do is when the user types 'experiment' the bot will send the link to the photo and it will attach the emoji to it. It gives me this error.
Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\13129\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 343, in _run_event await coro(*args, **kwargs) File "c:\Users\13129\Desktop\Python Bot\Ben.py", line 50, in on_message moji = await client.get_channel.send("https://c.tenor.com/R_itimARcLAAAAAd/talking-ben-yes.gif") AttributeError: 'function' object has no attribute 'send'
I tried changing a few things on line 20 but nothing seems to be working!