WebMar 1, 2024 · Discord.py send a dm to a user Ask Question Asked 2 years ago Modified 2 years ago Viewed 788 times 1 So I made a dm command for my bot which works well but I can't dm a user with a space in user name. Does anyone know how to do this? WebApr 29, 2024 · 1 Answer. To send a private message to a user in discord.py-rewrite, you use the User.send method: async def help (ctx): ... await ctx.author.send (...) This is because User is a subclass of the abstract Messageable class.
Python - DM a User Discord Bot - Stack Overflow
WebFeb 17, 2024 · If you want the bot to DM you specifically, you need to know your user ID, then inser it to a variable. Here is how you can define a simple command to DM someone ( for example you ) on bot startup: @client.event async def on_ready (): yourID = # Enter your ID here... discordUser = client.get_user (yourID) await discordUser.send ('Bot online.') WebNeed to unpatch mass dm tool. This tool I had someone code it for me using python but discord patched it. I need someone with the experience to unpatch the tool. The tool i have uses proxies, capmonster to solve captchas, discord tokens and sends DMs. The tool is able to use the discord accounts to send friend requests to all user IDs loaded in the … fbm supply pittsburgh
python - How to check if a bot can DM a user - Stack Overflow
WebJun 25, 2024 · 1 Answer. You can send personal messages to a user through member.send (...) where member is the user in the context (joined the server). The .send () function sends the content (your message) to the given destination which can be a channel, a group or a member (in this case),etc. Here is a … WebNov 26, 2024 · discord.User discord.Member commands.Context Example With bot.command () (recommended): from discord.ext import commands bot = commands.Bot (command_prefix="!") @bot.command () async def suggest (ctx, *, text: str): me = bot.get_user (YOUR_ID) await me.send (text) # or whatever you want to send here … WebApr 5, 2024 · Since discord.py does currently support this kind of stuff in its stable version 1.7.3 you can't do that unless you update to the unstable 2.0 or use pycord. But these only you can see msgs also only can be trigged where they were executed, since you cant slash command in a DM it is impossible to DM someone with only you can see this message. frigidaire gallery dishwasher motor noise