coffeebank / coffee-cogs

Discord bots for webhooks, invite-based welcomes, moving messages, and more ☕🧩
https://coffeebank.github.io/coffee-cogs/
GNU General Public License v3.0
20 stars 17 forks source link

Error when sending the command [p]hellohook settings or [p]hellohook test #28

Closed fakesmile9704 closed 1 year ago

fakesmile9704 commented 1 year ago

`Traceback (most recent call last): File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 229, in wrapped ret = await coro(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "{HOME}/red/cogs/CogManager/cogs/hellohook/hellohook.py", line 201, in hellohooksettings e2.add_field(name="Leave Webhook", value="||"+self.validChecker(guildData.get("leaveWebhook", None))+"||", inline=False)


TypeError: can only concatenate str (not "NoneType") to str

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 783, in invoke
    await super().invoke(ctx)
  File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1642, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: can only concatenate str (not "NoneType") to str`
coffeebank commented 1 year ago

Thanks for the report - Resolved in chat