Describe the bugError in command 'cartographerset view'. Check your console or logs for details.
Error 1:
Traceback (most recent call last):
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/.local/share/Red-DiscordBot/data/TechBot/cogs/CogManager/cogs/cartographer/main.py", line 186, in view_settings
allowed = ", ".join(self.db.allowed_guilds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, int found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
await ctx.command.invoke(ctx)
File "{HOME}/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 825, in invoke
await super().invoke(ctx)
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1650, in invoke
await ctx.invoked_subcommand.invoke(ctx)
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1029, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 244, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: sequence item 0: expected str instance, int found
Error 2:
Traceback (most recent call last):
File "/home/tech/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tech/.local/share/Red-DiscordBot/data/TechBot/cogs/CogManager/cogs/cartographer/main.py", line 186, in view_settings
allowed = ", ".join(self.db.allowed_guilds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, int found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tech/redenv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
await ctx.command.invoke(ctx)
File "/home/tech/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 825, in invoke
await super().invoke(ctx)
File "/home/tech/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1650, in invoke
await ctx.invoked_subcommand.invoke(ctx)
File "/home/tech/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1029, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tech/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 244, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: sequence item 0: expected str instance, int found
**Cog Version***
Latest
To Reproduce
Steps to reproduce the behavior:
Install cartographer
Allow more than one server
Configure settings
Attempt to view settings with [p]cartographerset view
Expected behavior
Some sort of view of global settings should show
ScreenshotsN/A
Additional context
Guild ID type should be cast as string not integer
Describe the bug
Error in command 'cartographerset view'. Check your console or logs for details.
Error 1:Error 2:
**Cog Version*** Latest
To Reproduce Steps to reproduce the behavior:
[p]cartographerset view
Expected behavior
Screenshots
N/A
Additional context