Skip to content

Commit

Permalink
[Info] truncate perms description
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Aug 5, 2024
1 parent a799a1e commit 16920e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion info/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async def _callback(self: UISelect, interaction: discord.Interaction[Red]) -> No
color=self.user.color, title="{}'s Permissions".format(self.user.display_name)
)
embed.description = (
self.view._format_perms()
truncate(self.view._format_perms(), max=4000)
if get_perms(self.user.guild_permissions)
else "{} does not have any permissions in this server.".format(
self.user.display_name
Expand Down

0 comments on commit 16920e7

Please sign in to comment.