diff options
| author | 2020-12-31 00:37:45 -0500 | |
|---|---|---|
| committer | 2020-12-31 00:37:45 -0500 | |
| commit | 8ff946d69d0d1e479d0d313070b87e7c5950d997 (patch) | |
| tree | b01bb29b23ee59d7b23a3587cec1b349e8b15066 | |
| parent | Merge pull request #1016 from ks129/bug-fixes (diff) | |
| parent | "Pending: False" to "Verified: True" to agree with new semantics. (diff) | |
Merge pull request #1339 from python-discord/swfarnsworth/info
`!user` command says if a user is "Verified", rather than "Pending"
| -rw-r--r-- | bot/exts/info/information.py | 4 | ||||
| -rw-r--r-- | tests/bot/exts/info/test_information.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 2057876e4..b2138b03f 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -229,9 +229,9 @@ class Information(Cog): if on_server: joined = time_since(user.joined_at, max_units=3) roles = ", ".join(role.mention for role in user.roles[1:]) - membership = {"Joined": joined, "Pending": user.pending, "Roles": roles or None} + membership = {"Joined": joined, "Verified": not user.pending, "Roles": roles or None} if not is_mod_channel(ctx.channel): - membership.pop("Pending") + membership.pop("Verified") membership = textwrap.dedent("\n".join([f"{key}: {value}" for key, value in membership.items()])) else: diff --git a/tests/bot/exts/info/test_information.py b/tests/bot/exts/info/test_information.py index 043cce8de..d077be960 100644 --- a/tests/bot/exts/info/test_information.py +++ b/tests/bot/exts/info/test_information.py @@ -355,7 +355,7 @@ class UserEmbedTests(unittest.IsolatedAsyncioTestCase): self.assertEqual( textwrap.dedent(f""" Joined: {"1 year ago"} - Pending: {"False"} + Verified: {"True"} Roles: &Moderators """).strip(), embed.fields[1].value |