nukebot / discord-nuke-bot

a simple but efficient discord bot for nuking servers!
https://github.com/nukebot/discord-nuke-bot
128 stars 172 forks source link

Errors after typing a command #4

Open DavidStojko opened 4 years ago

DavidStojko commented 4 years ago

Ignoring exception in command rape: Traceback (most recent call last): File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 83, in wrapped ret = await coro(*args, **kwargs) File "bot.py", line 120, in rape for channel in list(ctx.message.server.channels): AttributeError: 'Message' object has no attribute 'server'

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

Traceback (most recent call last): File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 892, in invoke await ctx.command.invoke(ctx) File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 797, in invoke await injected(*ctx.args, *ctx.kwargs) File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 92, in wrapped raise CommandInvokeError(exc) from exc discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Message' object has no attribute 'server' Ignoring exception in command help: Traceback (most recent call last): File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 83, in wrapped ret = await coro(args, **kwargs) File "bot.py", line 39, in help await client.send_message(author, embed=embed) AttributeError: 'Bot' object has no attribute 'send_message'

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

Traceback (most recent call last): File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 892, in invoke await ctx.command.invoke(ctx) File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 797, in invoke await injected(*ctx.args, **ctx.kwargs) File "/home/stojke/.local/lib/python3.7/site-packages/discord/ext/commands/core.py", line 92, in wrapped raise CommandInvokeError(exc) from exc discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Bot' object has no attribute 'send_message'