fix logical error in rss
This commit is contained in:
1 parent
c12765c774
commit
6d4f5e12e8
1 file changed
+3
-1
+3
-1
@@ -353,12 +353,14 @@ class Banking(commands.Cog):
|
||||
)
|
||||
@commands.has_role(987770837627187250)
|
||||
@commands.command()
|
||||
async def rss(self, ctx: CustomCtx, ids: commands.Greedy[int] = [], *, nation_names: str|None =None):
|
||||
async def rss(self, ctx: CustomCtx, ids: commands.Greedy[int] = None, *, nation_names: str|None =None):
|
||||
"""get resources of a nation in alliance
|
||||
|
||||
Args:
|
||||
ids (commands.Greedy[int]): ids of nations
|
||||
"""
|
||||
if ids is None:
|
||||
ids = []
|
||||
d_kit = pnwkit.QueryKit(
|
||||
api_key=os.getenv("pnwDILFKEY"),
|
||||
bot_key=os.getenv("pnwBOTKEY"),
|
||||
|
||||
Reference in new issue
Block a user