skip passing prefix explicitly
This commit is contained in:
parent
36e63c919e
commit
796d5aa763
1 changed files with 2 additions and 3 deletions
|
@ -47,9 +47,9 @@ async def get_prefix(the_bot, message: Message):
|
||||||
|
|
||||||
|
|
||||||
class Nomen(Bot):
|
class Nomen(Bot):
|
||||||
def __init__(self, prefix, description=None, **options):
|
def __init__(self, description=None, **options):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
prefix,
|
get_prefix,
|
||||||
description=description,
|
description=description,
|
||||||
command_sync_flags=options.get("sync_flags"),
|
command_sync_flags=options.get("sync_flags"),
|
||||||
allowed_mentions=options.get("allowed_mentions"),
|
allowed_mentions=options.get("allowed_mentions"),
|
||||||
|
@ -86,7 +86,6 @@ class Nomen(Bot):
|
||||||
|
|
||||||
|
|
||||||
bot = Nomen(
|
bot = Nomen(
|
||||||
prefix=get_prefix,
|
|
||||||
description="Keeper of Names",
|
description="Keeper of Names",
|
||||||
intents=Intents(
|
intents=Intents(
|
||||||
guilds=True,
|
guilds=True,
|
||||||
|
|
Loading…
Reference in a new issue