N
N
Nikita Kitsan2021-10-27 12:46:59
Bots
Nikita Kitsan, 2021-10-27 12:46:59

Is there such a bot in Discord?

Maybe someone knows.
Is there a bot that, with the help of a command, grants the right to a specific channel on the server, but not with the help of a role, namely, it adds a specific person to the channel rights

Example: We play mafia ds, and there is a separate channel for the mafia itself, here we need a bot that gave the host's team the rights to the channel for the mafia.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavlosik, 2021-11-03
@Pavlosik

Yes, this is possible for this you need a module random
Create your own roles for the game

@client.command(aliases = ['мафия'])
async def игра(ctx):
     role = ctx.guild.get_role(
        Тут айди ролей которых вы создали
    ) 
    await ctx.author.add_roles(role)
    await ctx.send(
        embed=discord.Embed(
            description=f"**Игра началась**",
            color=discord.Color.red(),
        )
    )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question