ModuleNotFoundError while coding a Python Discord bot

Viewed 10

I am trying to get my Discord bot to execute commands because it stopped after an update in the way bots work in discord I believe. I am stuck at an error that says ModuleNotFound when I try to import discord interaction package. I have tried installing it through the windows cmd AND through the Replit command prompt. It says it's installed successfully but when I run my file the error pops up. What should I do?

import imaplibnteractions
import discord
from discord.ext import commands
#import os
import music




cogs = [music]

bot = interactions.Client(token="My token")

for i in range(len(cogs)):
    cogs[i].setup(bot)


@bot.event
async def on_ready():
    print('Fritten Bot is on!')




bot.start()
0 Answers
Related