Expected: The cog is loaded
Actually: TypeError: discord.commands.core.SlashCommandGroup() got multiple values for keyword argument 'name'
Code:
import discord
import json
import src.defs.generalFunctions as generalFunctions
import src.defs.internalFunctions as InternalFunctions
import src.defs.staffFunctions as staffFunctions
import src.defs.superLogger as superLogger
from discord.commands import Option
class JsonImports:
config = json.loads(open("config.json", encoding='utf8').read())
secretConfig = json.loads(open("secret_config.json", encoding='utf8').read())
class VoteEndCommand(discord.Cog):
def __init__(self, bot):
self.bot: discord.Bot = bot
from cogs.commands.bodGroup import BoDGroup
@BoDGroup.command(guild_ids=[JsonImports.secretConfig['GUILD_ID']], description="End a BoD Vote")
async def vote_end(
self,
ctx: discord.ApplicationContext
):
superLogger.commandSuperLog(ctx, f"")
def setup(bot: discord.Bot):
bot.add_cog(VoteEndCommand(bot))