Closed skylarr1227 closed 1 year ago
What is your commands.Bot
instantiation or if you have a bot.get_prefix
override, I would need to see that.
Main dna file, init of bot
class Ditto(commands.AutoShardedBot):
def __init__(self, cluster_info, *args, **kwargs):
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
# =yield loop
# loop.close()
AgnosticClient.get_io_loop = asyncio.get_running_loop
intents = discord.Intents.none()
intents.guilds = True
intents.members = True
intents.guild_messages = True
# To be removed once the bot is ready, or september, whichever comes first :P
intents.message_content = False
super().__init__(
command_prefix=get_prefix,
max_messages=None,
intents=intents,
heartbeat_timeout=120,
owner_ids=OWNER_ID_LIST,
guild_ready_timeout=10,
shard_ids=cluster_info["shards"],
shard_count=cluster_info["total_shards"],
allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=True),
enable_debug_events=True,
chunk_guilds_at_startup=False,
*args,
**kwargs,
)
...# continued past this for a while.
definition of get_prefix
async def get_prefix(bot, message):
prefixes = ['<@1000125868938633297>']
if not message.guild:
return "?"
return commands.when_mentioned_or(*prefixes)(bot, message)
and commands.Bot for that cog? Im not sure which cog it was causing the issue.... and there is a total of 24
This is the result of starlight.convert_help_hybrid
replacing ctx.prefix
with your bot.get_prefix
. I've reverted that line so it doesn't replace it. The goal of that line was to properly display the command prefix signature when the help command is invoked with a slash command, but it is removed now since it is not deemed reasonable to patch things like this.
You can update the library by
pip install -U git+https://github.com/InterStella0/starlight-dpy
So.. I can only assume its something with how our cogs are laid out, but unsure.. Heres the error im getting... Seems to reference prefix but yeah, this is where i got stuck.
Our prefix for non-slash commands is on mention of the bot via reply or ping.