CraftSpider / dpytest

A package that assists in writing tests for discord.py
MIT License
103 stars 25 forks source link

Sending a message through seems to create a new user #128

Open deydist opened 4 months ago

deydist commented 4 months ago

Apologies if this is a foolish question...

When I use await dpytest.message("!alert test 0")

it appears to be sending through a new user each time as when I grab ctx.author from my main alert code it has an ID that was not seen before (I tested this by writing the user info to a file).

Even if I add member=member as a dpytest.message parameter where member is obtained from member = dpytest.runner.get_config().members[0] I cant get the ctx.author to match the given member that I pass through. Am I missing something with config and documentation?

My end goal is to use the !alert test 0 to check if the param is 0 and remove an item from a list for that member.