We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1236eff commit 343cb28Copy full SHA for 343cb28
tests/test_exceptions.py
@@ -637,6 +637,10 @@ def test_default_message_without_guild_id(self) -> None:
637
"""
638
assert "given ID" in str(GuildDoesNotExistError())
639
640
+ def test_error_code(self) -> None:
641
+ """Test that the error code is set correctly."""
642
+ assert "E1011" in (GuildDoesNotExistError().ERROR_CODE)
643
+
644
645
class TestRoleDoesNotExistError:
646
"""Test case to unit-test the `RoleDoesNotExistError` exception."""
0 commit comments