aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/discord/state.py b/discord/state.py
index 00ccb83d..93b4f727 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
"""
The MIT License (MIT)
@@ -149,7 +147,7 @@ class ConnectionState:
intents = options.get('intents', None)
if intents is not None:
if not isinstance(intents, Intents):
- raise TypeError('intents parameter must be Intent not %r' % type(intents))
+ raise TypeError(f'intents parameter must be Intent not {type(intents)!r}')
else:
intents = Intents.default()
@@ -175,7 +173,7 @@ class ConnectionState:
cache_flags = MemberCacheFlags.from_intents(intents)
else:
if not isinstance(cache_flags, MemberCacheFlags):
- raise TypeError('member_cache_flags parameter must be MemberCacheFlags not %r' % type(cache_flags))
+ raise TypeError(f'member_cache_flags parameter must be MemberCacheFlags not {type(cache_flags)!r}')
cache_flags._verify_intents(intents)