File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ def test_bot_data_fields(bot_data: types.BotData) -> None:
127
127
for attr in bot_data :
128
128
if "id" in attr .lower ():
129
129
assert isinstance (bot_data [attr ], int ) or bot_data [attr ] is None
130
- elif attr in ( "owners" , "guilds" ) :
130
+ elif attr == "owners" :
131
131
for item in bot_data [attr ]:
132
132
assert isinstance (item , int )
133
133
assert bot_data .get (attr ) == bot_data [attr ] == getattr (bot_data , attr )
Original file line number Diff line number Diff line change @@ -291,10 +291,10 @@ def guilds(self) -> t.List[int]:
291
291
292
292
@property
293
293
def certified_bot (self ) -> bool :
294
- """DEPRECATED: Certified bot is no longer supported by Top.gg API v0. At the moment, this will always be false ."""
294
+ """DEPRECATED: Certified bot is no longer supported by Top.gg API v0. At the moment, this will always be False ."""
295
295
296
296
warnings .warn (
297
- "Certified bot is no longer supported by Top.gg API v0. At the moment, this will always be false ." ,
297
+ "Certified bot is no longer supported by Top.gg API v0. At the moment, this will always be False ." ,
298
298
DeprecationWarning ,
299
299
)
300
300
return False
@@ -313,10 +313,10 @@ def __init__(self, **kwargs: t.Any):
313
313
314
314
@property
315
315
def shards (self ) -> t .List [int ]:
316
- """DEPRECATED: Shard-related data is no longer supported by Top.gg API v0. At the moment, this will always return an empty array ."""
316
+ """DEPRECATED: Shard-related data is no longer supported by Top.gg API v0. At the moment, this will always return an empty list ."""
317
317
318
318
warnings .warn (
319
- "Shard-related data is no longer supported by Top.gg API v0. At the moment, this will always return an empty array ." ,
319
+ "Shard-related data is no longer supported by Top.gg API v0. At the moment, this will always return an empty list ." ,
320
320
DeprecationWarning ,
321
321
)
322
322
return []
You can’t perform that action at this time.
0 commit comments