Get user by ID via DM Slash command
I'm trying to get a User obj for a specifc user by their ID, but from a Slash command thats run via a DM ...
I know when working in the guild, it can be gotten from like
Is there any way to do this? Or even get the guild object (by ID) from a DM message?
Basically I'm budling a secret santa type bot for my server ... User A can send the bot a question via a slash command, the bot then gets who User A drew for the drawing; and sends them (User B) a DM asking the question .. but I can't get the user object for User B in the DMs so send the message to
I know when working in the guild, it can be gotten from like
interaction.guild.members.cache.get(UID) however, in DMs there is no guild. Is there any way to do this? Or even get the guild object (by ID) from a DM message?
Basically I'm budling a secret santa type bot for my server ... User A can send the bot a question via a slash command, the bot then gets who User A drew for the drawing; and sends them (User B) a DM asking the question .. but I can't get the user object for User B in the DMs so send the message to