We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7cf6c8 commit 2a42669Copy full SHA for 2a42669
1 file changed
bot/exts/core/extensions.py
@@ -1,6 +1,5 @@
1
-import functools
2
from collections.abc import Mapping
3
-from enum import Enum
+from enum import Enum, member
4
5
from discord import Colour, Embed
6
from discord.ext import commands
@@ -24,10 +23,9 @@
24
23
class Action(Enum):
25
"""Represents an action to perform on an extension."""
26
27
- # Need to be partial otherwise they are considered to be function definitions.
28
- LOAD = functools.partial(Bot.load_extension)
29
- UNLOAD = functools.partial(Bot.unload_extension)
30
- RELOAD = functools.partial(Bot.reload_extension)
+ LOAD = member(Bot.load_extension)
+ UNLOAD = member(Bot.unload_extension)
+ RELOAD = member(Bot.reload_extension)
31
32
33
class Extension(commands.Converter):
0 commit comments