how to make a discord bot dm someone python
@bot.command(pass_context = True)
async def dm(ctx, member : discord.Member, *, content: str):
await bot.send_message(member, content)
how to make a discord bot dm someone python
@bot.command(pass_context = True)
async def dm(ctx, member : discord.Member, *, content: str):
await bot.send_message(member, content)
how to make a bot send whatever you dm it into a server discord.py
# We will be importing the discord.ext.commands extension for this.
from discord.ext import commands
import discord
# We make the bot definition and set the prefix to !
bot = commands.Bot(command_prefix='!')
# Here starts the real fun
@bot.command()
async def DM(ctx, user: discord.User, *, message=None):
# Once we define the argunments we need, it's pretty straight forward.
message = message
await user.send(message)
# You, that's it!
bot.run("TOKEN")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us