About 60,200 results
Open links in new tab
  1. GitHub - hwalters361/discord_bot: A simple script and tutorial on how ...

    To write a script that sends private messages to Discord users, you can use the discord.py library in Python. To work with the Python library and the Discord API, you must first create a bot and copy its …

  2. Python Discord Private Message - CodePal

    Oct 22, 2023 · Learn how to send a private message to a user on Discord using Python. This tutorial provides a step-by-step guide and example code.

  3. python - Discord.py - How do I send private message to someone using …

    Jan 29, 2019 · I would like to know how do I send private messages to someone with they'r ID Help

    • Reviews: 2

      Code sample

      @client.command(pass_context=True)
      async def dm(ctx):
        user=await client.get_user_info("User's ID here")
        await client.send_message(user, "Your message goes here")
        # This works ^
    • Send Personalized DMs with Your Discord Bot using Discord.py

      One of the features it offers is the ability for bots to send direct messages (DMs) to users on a server. In this article, we will explore how to use Discord.py, a Python library, to implement this functionality into …

    • API Reference ¶

      Represents a client connection that connects to Discord. This class is used to interact with the Discord WebSocket and API. Asynchronously initialises the client and automatically cleans up. New in version …

    • How to Private Message Users Using discord.py 1.7.2 - YouTube

      Learn how to send private messages to users in discord.py 1.7.2, including code examples and solutions to common issues.---This video is based on the questio...

    • Creating a Discord Bot in Python - GeeksforGeeks

      Jul 23, 2025 · First and foremost we need to have a dedicated server where we are going to setup our bot. This bot will work on a single channel on this server. To …

    • r/Discord_Bots on Reddit: [Discord.py] Trying to send private message ...

      The on_message event triggers on every message, including ones the bot itself sent. So when someone sends a "//suggestion" command, the bot forwards that to you as a DM.

    • How to Make a Discord Bot in Python

      In this step-by-step tutorial, you'll learn how to make a Discord bot in Python and interact with several APIs. You'll learn how to handle events, accept commands, …

    • Creating A Python Discord Bot – A Complete Step-by …

      Dec 16, 2022 · Discord is one of the most popular social media platforms of the 21st century and making a discord bot might be one of the coolest python …