Answer the question
In order to leave comments, you need to log in
Syntax error about File “”, line 1, what does it mean?
I'm trying to run this script to issue roles:
from discord.ext import commands
from discord.utils import get
import discord
bot = commands.Bot(command_prefix='/')
@bot.command(pass_context=True)
@commands.has_role("123") # This must be exactly the name of the appropriate role
async def addrole(ctx):
member = ctx.message.author
role = get(member.server.roles, name="Test")
await bot.add_roles(member, role)
client = MyClient()
client.run('Тут стоит мой токен :) ')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question