Skip to content Skip to sidebar Skip to footer

Discord.py Send_message Usage

I've started working on a project to accelerate my learning of python. I'm trying to recreate a discord bot I use quite a bit since i'm already use to its features. Below is my cur

Solution 1:

The *args in your truck is no longer valid syntax I believe for the commands with discord.py

@pybot.command(pass_context=True)asyncdeftruck(ctx):
    await pybot.send_message(ctx.message.user, 'Watchout for that truck!')

Checkout the github repository for Discord.py with their examples

Post a Comment for "Discord.py Send_message Usage"