ModuleNotFoundError: No module named 'cogs'
问题 I wrote a discord bot that uses cogs. Here's my code for loading in each extension/cog: import discord import os from discord.ext import commands client = commands.Bot(command_prefix= '.') @client.command() async def load(ctx, extension): client.load_extension(f'cogs.{extension}') @client.command() async def unload(ctx, extension): client.unload_extension(f'cogs.{extension}') @client.command() async def reload(ctx, extension): client.unload_extension(f'cogs.{extension}') client.load_extension