Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-id and user-mention are not working with listroles command #58

Open
Asherlam opened this issue Aug 6, 2020 · 5 comments
Open

user-id and user-mention are not working with listroles command #58

Asherlam opened this issue Aug 6, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@Asherlam
Copy link

Asherlam commented Aug 6, 2020

image
image

@gregzaal gregzaal added the bug Something isn't working label Aug 6, 2020
@gregzaal
Copy link
Owner

gregzaal commented Aug 6, 2020

Needs investigating, the code specifically checks if text == user.mention so something's wrong.

@Asherlam
Copy link
Author

user.mention 100% are not = to username. Because user.mention is <@user.id>, but username is <user.name>
image

@ChillFish8
Copy link
Collaborator

you seem to have missed the user.name == username bit that will happen before user.mention

@Asherlam
Copy link
Author

Asherlam commented Aug 21, 2020

image
image
the username has one extra word !
image
It works. When I replace username to (username.replace('!', ''))

@Asherlam
Copy link
Author

Asherlam commented Oct 24, 2020

image
image
add get_user_in_guild in utils.py, so listroles allow to use name, mention, user_id as an argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants