Skip to content

Commit 2756721

Browse files
Fix import errors
1 parent 3767e59 commit 2756721

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

discord/commands/commands.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from collections import OrderedDict
3434
from typing import Any, Callable, Dict, List, Optional, Union
3535

36-
from ..enums import SlashCommandOptionType, SlashCommandChannelType
36+
from ..enums import SlashCommandOptionType, ChannelType
3737
from ..member import Member
3838
from ..user import User
3939
from ..message import Message
@@ -492,10 +492,10 @@ def _update_copy(self, kwargs: Dict[str, Any]):
492492
return self.copy()
493493

494494
channel_type_map = {
495-
'TextChannel': SlashCommandOptionType.text,
496-
'VoiceChannel': SlashCommandOptionType.voice,
497-
'StageChannel': SlashCommandOptionType.stage_voice,
498-
'CategoryChannel': SlashCommandOptionType.category
495+
'TextChannel': ChannelType.text,
496+
'VoiceChannel': ChannelType.voice,
497+
'StageChannel': ChannelType.stage_voice,
498+
'CategoryChannel': ChannelType.category
499499
}
500500

501501
class Option:

discord/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ class NSFWLevel(Enum, comparable=True):
609609
age_restricted = 3
610610

611611

612-
class OptionType(Enum):
612+
class SlashCommandOptionType(Enum):
613613
sub_command = 1
614614
sub_command_group = 2
615615
string = 3

0 commit comments

Comments
 (0)