хочу сделать логи но выходит это ошибка
File "C:\Users\Rima Pashayeva\Desktop\neffex\n.py", line 44, in on_message
print('Member: ', message.Member)
AttributeError: 'Message' object has no attribute 'Member'
Вот мой код
import discord
from discord.ext import commands
import os, sqlite3
import math
import random
from discord_components import DiscordComponents, Button, ButtonStyle
from asyncio import sleep
import time
from discord import Game
import requests
from discord import FFmpegPCMAudio
import youtube_dl
from os import system
from discord.utils import get
import asyncio
import voice
from discord import utils
import io
from config import settings
client = commands.Bot(command_prefix = settings['PREFIX'], intents=discord.Intents.all())
client.remove_command('help')
@client.event
async def on_ready():
DiscordComponents(client)
print('Ботяна на старте')
await client.change_presence(status = discord.Status.online, activity = discord.Game('Python \n Создатель Могучий#0464') )
global base, cur
base = sqlite3.connect('Ботяна.db')
cur = base.cursor()
if base:
print('DataBase connected...OK')
@client.event
async def on_message(message):
print('Message: ', message.content)# содержимое сообщения
print('Member: ', message.Member)
@client.command()
async def Ы(ctx):
await ctx.send('Я кибер Неффекс служу хакер крафту')