Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throwing error when tried toverify #1

Closed
fakesmile9704 opened this issue Dec 26, 2022 · 1 comment
Closed

Throwing error when tried toverify #1

fakesmile9704 opened this issue Dec 26, 2022 · 1 comment
Assignees

Comments

@fakesmile9704
Copy link

fakesmile9704 commented Dec 26, 2022

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 124, in wrapped
    ret = await coro(arg)
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 974, in _invoke
    await self.callback(ctx, **kwargs)
  File "/root/discordstuff/Enron/main.py", line 57, in setup
    await verify(bot,ctx,verification_channel,role)
  File "/root/discordstuff/Enron/cogs/utility.py", line 319, in verify
    embed.set_thumbnail(url=ctx.guild.icon.url)
AttributeError: 'NoneType' object has no attribute 'url'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/discord/client.py", line 377, in _run_event
    await coro(*args, **kwargs)
  File "/root/discordstuff/Enron/main.py", line 218, in on_application_command_error
    raise error
  File "/usr/local/lib/python3.10/dist-packages/discord/bot.py", line 1088, in invoke_application_command
    await ctx.command.invoke(ctx)
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 374, in invoke
    await injected(ctx)
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 132, in wrapped
    raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: AttributeError: 'NoneType' object has no attribute 'url'```
@sampathgujarathi
Copy link
Owner

Hello, Sorry for late reply is the error fixed or do u have issue still?

sampathgujarathi added a commit that referenced this issue Dec 27, 2023
Fixed issue #1
@sampathgujarathi sampathgujarathi self-assigned this Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants