breqdev/flask-discord-interactions

dm people

MaskDuck opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
i am kinda confused to dm someone myself

Describe the solution you'd like
a native method to dm people, possiblity User.send
Describe alternatives you've considered
trying to use the raw api

Additional context
Add any other context or screenshots about the feature request here.

This library uses the Webhook API to respond to interactions. The rationale for this is documented here. As such, you can only respond to a command in a few ways, listed here.

If you just want to run commands in a DM, this is documented here.

If you want your bot to DM people directly in response to a command run in a server, you need to use a library which connects to Discord using a websocket -- webhook libraries like this one can't support that feature unless Discord adds support.

If you just want to send the user a message that others in the channel can't see, consider an ephemeral message.

i see. thanks for clarification.