Мой код:
@bot.command()
async def list(ctx, serv = None):
memberss = discord.Guild.members
await ctx.send(memberss)
Ошибка:
Ignoring exception in command list:
Traceback (most recent call last):
File "C:\Python1\12344\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:/Python1/12344/venv/134567890.py", line 233, in list
memberss = ctx.Guild.members
AttributeError: 'Context' object has no attribute 'Guild'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Python1\12344\venv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Python1\12344\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Python1\12344\venv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Context' object has no attribute 'Guild'