Skip to content

Commit 7e66294

Browse files
committed
Fixed bug where config del wasn't working
1 parent 64e99b0 commit 7e66294

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cogs/utility.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ async def set(self, ctx, key: str.lower, *, value):
462462
return await ctx.send(embed=em)
463463

464464
@config.command(name='del')
465-
async def del_(self, ctx, key: str.lower):
465+
async def del__config(self, ctx, key: str.lower):
466466
"""Sets a specified key from the config to nothing."""
467467
keys = self.bot.config.allowed_to_change_in_command
468468
if key in keys:
@@ -593,8 +593,7 @@ async def add_(self, ctx, name: str.lower, *, value):
593593
return await ctx.send(embed=em)
594594

595595
@alias.command(name='del')
596-
# TODO: Potential Bug. Does functions override in discord??
597-
async def del_(self, ctx, *, name: str.lower):
596+
async def del_alias(self, ctx, *, name: str.lower):
598597
"""Removes a alias from bot config."""
599598

600599
if 'aliases' not in self.bot.config.cache:

0 commit comments

Comments
 (0)