Reputation: 125
I was trying to figure out how to fix the problem. It didn't print anything nor sent a DM.
Code:
async def on_dbl_vote(self, ctx, data):
print("Received an upvote:")
await ctx.author.send(f"hey {ctx.author.name}, thanks for voting!")
Upvotes: 3
Views: 609
Reputation:
To do this you should be doing user.send
while ctx.author.send
would just send it to the author of a message which is not specified
Upvotes: 1