Answers for "Get discord member by name discord.py"

7

discord py get user by id

user = bot.get_user(user_id)
Posted by: Guest on May-21-2020
10

python discord

import discord

class MyClient(discord.Client):
    async def on_ready(self):
        print('Logged on as', self.user)

    async def on_message(self, message):
        # don't respond to ourselves
        if message.author == self.user:
            return

        if message.content == 'ping':
            await message.channel.send('pong')

client = MyClient()
client.run('token')
Posted by: Guest on June-11-2020

Code answers related to "Get discord member by name discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language