-
- Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix for Issue #191 #200
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
Closed
Closed
Fix for Issue #191 #200
Changes from 1 commit
Commits
Show all changes
38 commits Select commit Hold shift + click to select a range
886e483 Disable role list temporarily
infinitepower18 964ff0f Move disabled message to footer
infinitepower18 c8b2132 Revert changes, bot crashing
infinitepower18 9738833 Update thread.py
infinitepower18 a22aca7 Update thread.py
infinitepower18 defc31d Add files via upload
infinitepower18 20243ee Update thread.py
infinitepower18 c7c22d9 Update thread.py
infinitepower18 965a4d6 Reduce number of roles to show
infinitepower18 0e279da set value to 36
infinitepower18 775006f testing with value 41, edit too many roles msg
infinitepower18 08a6119 add role counter.
infinitepower18 ef8fccb set value to 41, update too many roles msg
infinitepower18 20040a0 add space, now testing with 46 value
infinitepower18 4a7f95c Update thread.py
infinitepower18 72ad551 Set limit for separate server mode to 21
infinitepower18 8b536c3 Add files via upload
infinitepower18 1a264df Add files via upload
infinitepower18 aaa9ef0 Add files via upload
infinitepower18 1b9e2b0 fix crash
infinitepower18 6fb1032 Update thread.py
infinitepower18 f29590b Set character count to 800
infinitepower18 7426484 Merge pull request #1 from codeinteger6/testing
infinitepower18 8024647 Update thread.py
infinitepower18 6e40b3a field.value limit 1024
infinitepower18 a390a7a Update thread.py
infinitepower18 0e8eef1 Update thread.py
infinitepower18 3e3c047 Merge pull request #2 from codeinteger6/codeinteger6-patch-1
infinitepower18 9fb31e3 Grammar
infinitepower18 a88063b clean
infinitepower18 5bc8d9d Add files via upload
infinitepower18 78999cc Update thread.py
infinitepower18 bcb0b47 Merge pull request #3 from codeinteger6/codeinteger6-patch-1
infinitepower18 c05846b Use Python 3.7.2
infinitepower18 b44bc97 Updating bot
infinitepower18 f3e9eac Merge pull request #4 from codeinteger6/master
infinitepower18 f50a013 Merge pull request #5 from codeinteger6/botupdate
infinitepower18 7f71c77 Use Python 3.7.3
infinitepower18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add role counter.
- Loading branch information
commit 08a6119a54511ff8e075489fe6b60b8bd53cf2f5
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -652,19 +652,19 @@ def _format_info_embed(self, user, log_url, log_count, color): | |
| if separate_server: | ||
| for r in roles: | ||
| count = count + 1 | ||
| if count <= 41: | ||
| if count <= 21: | ||
| role_names = ', '.join(r.name for r in roles | ||
| if r.name != "@everyone") | ||
| else: | ||
| role_names = "This user has too many roles which can't be displayed due to Discord limitations." | ||
| role_names = "Too Many Roles To Show!" | ||
| else: | ||
| for r in roles: | ||
| count = count + 1 | ||
| if count <= 41: | ||
| if count <= 21: | ||
| role_names = ' '.join(r.mention for r in roles | ||
| if r.name != "@everyone") | ||
| else: | ||
| role_names = "This user has too many roles which can't be displayed due to Discord limitations." | ||
| role_names = "Too Many Roles To Show!" | ||
| | ||
| embed = discord.Embed(color=color, | ||
| description=user.mention, | ||
| | @@ -691,7 +691,8 @@ def _format_info_embed(self, user, log_url, log_count, color): | |
| value=member.nick, | ||
| inline=True) | ||
| if role_names: | ||
| embed.add_field(name='Roles', | ||
| count = count - 1 | ||
| ||
| embed.add_field(name='Roles['+str(count)+"]", | ||
| value=role_names, | ||
| inline=True) | ||
| else: | ||
| | ||
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
count += 1