I didnt really wanna ask this but ive been having trouble, I keep getting errors when i want to try and send a message in a specifc channel, heres the code thats important:
channel = client.get_channel(CHANNELID)
@client.event
async def on_message(message):
if message.author.id != BOTID:
await channel.send(f"**{message.author.name}** - {datetime.today().strftime('%Y-%m-%d')} {datetime.today().strftime('%H:%M:%S')} - {message.content}")
await client.process_commands(message)
The error i get is
AttributeError: 'NoneType' object has no attribute 'send'
Another side question, it is possible to make it send it in a different server?
Thanks