Pycord사용하고 잇는데 계속 오류뜸 뭐가 문젠지 아는 사람..?


import discord

bot = discord.Bot() token = "bot_token" @bot.event async def on_ready(): print("봇이 작동합니다.") @bot.slash_command(guild_ids = [843858962407620618], description="Check bot's response latency") async def ping(ctx): embed = discord.Embed(title="Pong!", description=f"Delay: {bot.latency} seconds", color=0xFFFFFF) embed.set_footer(text="Embed Footer") await ctx.respond(embed=embed) bot.run(token)

블로그 그대로 복붙해서 VSC에 쳣더니


line 4, in <module>

    bot = discord.Bot()

AttributeError: module 'discord' has no attribute 'Bot'     


자꾸이런오류뜸