About 219,000 results
Open links in new tab
  1. How do I make my discord.py bot play mp3 in voice channel?

    I'm a beginner in Python and I have recently started making a discord bot for some friends and I. The idea is to type !startq and have the bot join the channel, play an mp3 file that is locally …

  2. python - I want to let my Discord Bot send images/gifs - Stack …

    Apr 18, 2021 · with open('my_image.png', 'rb') as f: picture = discord.File(f) await channel.send(file=picture) Passing the file name directly: await …

  3. How do i make a working slash command in discord.py

    Feb 17, 2022 · # This is new in the discord.py 2.0 update # imports import discord import discord.ext # setting up the bot intents = discord.Intents.all() # if you don't want all intents you …

  4. Python - DM a User Discord Bot - Stack Overflow

    Sep 15, 2018 · I'm working on a User Discord Bot in Python .If the bot owner types !DM @user then the bot will DM the user that was mentioned by the owner. @client.event async def …

  5. python - Discord.py ban command - Stack Overflow

    May 28, 2018 · I'd recommend to use discord.ext.commands to make commands, it's easier to use. The function to ban is discord.Client.ban(member, delete_message_days = 1). This is an …

  6. python - How to make discord bot ping users using discord.py

    Oct 31, 2019 · I am coding a discord bot and for one of the commands I want the bot to ping the user that sent the command. I'm using python 3.6.6

  7. How can I send an embed via my Discord bot, w/python?

    Jul 1, 2017 · I've been working on a Discord bot, and I'd like to make things more custom. I've been trying to make the bot send embeds, instead of normal messages. embed = …

  8. python - How do I auto send a message using discord.py? - Stack …

    May 15, 2023 · Step 2: Launch the Loop using tasks.Loop.start, you can do it on the global scope.However, I'm going to do it in the on_ready event to be able to fetch the channel before …

  9. python - How do I mention a user in discord.py? - Stack Overflow

    May 14, 2017 · I'm trying to code a simple bot using discord.py, so I started with the fun commands to get familiar with the library. import discord client = discord.Client() @client.event …

  10. python - How to send a message with discord.py without a …

    Apr 15, 2018 · channelId = os.getenv('channelId') token = os.getenv('discordBotToken') intents = discord.Intents.default() # inililzing discord client with default intents client = …

Refresh