Closed Flame442 closed 8 months ago
I would like to take on this issue as my first GitHub contribution. I have experience in python discord bots so I think I could solve this.
@Flame442 any reason we shouldn't consider expanding .start()
to allow passing discord.User
instead of creating another method? It's mostly just an alternative design but I feel like it may be a bit more aligned with how we generally do these kinds of APIs in Red wherever it makes sense?
I don't have strong opinions about which option is better, see https://github.com/Cog-Creators/Red-DiscordBot/pull/5375#issuecomment-1874660248 for where I asked Trusty what he thought the best approach was.
Thank you :)
(Context deleted) If you need help working on the issue, please ask in the #coding channel of the red server (without pinging any particular user).
In order to support
[p]help
with a button menu in DMs,SimpleMenu
needs to be able to be sent as a DM to a particular user [Ref]. The currentSimpleMenu.start
method accepts aContext
object, which is incompatible with this behavior.SimpleMenu
should be given a new method.start_dm(user: discord.User)
, which sends the menu as a direct message to that user.Developer note:
SimpleMenu
currently storesself.ctx
in.start
, however it does not appear to ever be used. The other two attributes set by.start
(message
andauthor
) will be possible to set in this method.Unblocks #5375