Skip to content

Conversation

Rebeca98
Copy link
Contributor

No description provided.

@Rebeca98 Rebeca98 requested a review from rubenchos6 March 22, 2021 17:52
@Rebeca98
Copy link
Contributor Author

aun no hago la funcion jaja estoy trabajando en ello pero ya puse el help

Copy link
Contributor

@rubenchos6 rubenchos6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En la sintaxis pon --leave [nombre del proyecto]

Copy link
Contributor

@rubenchos6 rubenchos6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El for role in user.roles no está haciendo nada. Lo correcto sería:

  1. checar si el rol lo tiene el usuario: if any(args in role.name for role in user.roles)
    2)checar si el rol no es administrativo: if not any(args in approved_roles)
    3)Justo lo que hiciste: role=get(context.message.guild.roles, name=args)
    4)Quitarle el rol al usuario: client.remove_roles(user,role)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants