inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Discord 봇 입문하는데 에러가 절 반기네요~

6269

김규민

작성한 질문수 3

0

코드:

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
    print('다음으로 로그인합니다: ')
    print(bot.user.name)
    print('connection was succesful')
    await bot.change_presence(status=discord.Status.online, activity=None)

@bot.command()
async def 따라하기(ctx, *, text):
    await ctx.send(text)

bot.run("exampleCode")

-----------------------------------------------------------------------------
에러 내용:

Exception has occurred: TypeError
BotBase.__init__() missing 1 required keyword-only argument: 'intents'

------------------------------------------------------------------------------

도와주시면 감사하겠습니다(__)

답변 1

0

재원 허

bot = commands.Bot(command_prefix='!',intents=discord.Intents.all())

강의 수강 후 포트폴리오 준비 방향에 대해 조언 부탁드립니다.

2

41

1

Powershell은 시스템관리자가 앱을 차단

1

32

2

API 오류: EGW00201 - 초당 거래건수를 초과

1

48

2

useState 직접 구현 부분에서 질문이 있습니다.

1

43

1