Home > Net >  can't get discord to recognize my role id?
can't get discord to recognize my role id?

Time:11-30

import discord
import os
from keep_alive import keep_alive
import random
import glob
import os.path
import asyncio

client = discord.Client()


@client.event
async def on_ready():
    print('We have logged in as {0.user}'.format(client))


@client.event
async def on_message(ctx):
    if ctx.content.startswith(
            "/roles") and ctx.author.id == 251419567954460673:
        await roles(ctx)


async def roles(ctx):
    channel = client.get_channel(1047136010456285214)
    await channel.purge()
    text = "everyone choose a role\nKomt = ☑️\nSlapen =            
  • Related