File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 3
3
from topgg import types
4
4
5
5
d : dict = {
6
- "defAvatar" : "6debd47ed13483642cf09e832ed0bc1b" ,
7
6
"invite" : "" ,
8
7
"website" : "https://top.gg" ,
9
8
"support" : "KYZsaFb" ,
@@ -127,7 +126,7 @@ def test_bot_data_fields(bot_data: types.BotData) -> None:
127
126
for attr in bot_data :
128
127
if "id" in attr .lower ():
129
128
assert isinstance (bot_data [attr ], int ) or bot_data [attr ] is None
130
- elif attr in ( "owners" , "guilds" ) :
129
+ elif attr == "owners" :
131
130
for item in bot_data [attr ]:
132
131
assert isinstance (item , int )
133
132
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