james7132 / Hourai

The world's most advanced security and moderation bot for Discord.
https://hourai.gg
GNU General Public License v3.0
46 stars 16 forks source link

[BUG] Verification command fails to execute for users with a large number of roles #91

Open Temmie3754 opened 1 year ago

Temmie3754 commented 1 year ago

Describe the bug The manual verification command (verification verify) will not run if a user has a significant number of roles. This is likely due to a check against Discord's character limit of 1024 for embed fields not being performed.

To Reproduce Steps to reproduce the behavior:

  1. Give a user enough roles such that the text representation of their role list would exceed 1024 characters.
  2. Run the verification verify command on the user.
  3. Wait to see the lack of response from the bot.

Expected behavior Verification information on the user would be returned with the role list being shortened through some means (e.g. putting a message of "x roles omitted" at the end of the role list).