Async Coroutine was never awaited. (Missing __await__ method) #506
Labels
Feature
Request for developer-valued functionality
Help Wanted
Help wanted to get a resolution implemented faster
To Start
Description reviewed and a maintainer needs "to start" triage
Describe the issue briefly here, including:
Testing out RpyC for the groundwork of a project. I've setup a custom service that runs Discord.py on a seperate thread while RpyC runs on the main thread. I expected, from studying the documentation on RpyC, that the
async_
wrapper is used for remote execution of asynchronous functions, and that executing a function wrapped inasync_
would produce, in my case, a text message sent on on a text channel in a Discord Server.The actual result is an error that is thrown service side stating that the "coroutine 'Messable.send' was never awaited".
Steps to reproduce:
Copy the server code into a script and run, obviously you'll need to fetch a key from the Discord Developer Console.
Run the client code in a script, you'll need to create a Discord guild/server you to add the bot to as well as supply the correct guild id and channel id. the result should produce the same error I have.
Environment
Minimal example
Server:
Client:
For benefit of ease, the function I am attempting to execute clientside (the send function): https://discordpy.readthedocs.io/en/stable/api.html?highlight=textchannel#discord.TextChannel.send
The text was updated successfully, but these errors were encountered: