Skip to content

Commit ecd19db

Browse files
committed
Fixed forgotten model. at #44
1 parent 764dac4 commit ecd19db

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

discord_slash/client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,15 +566,18 @@ async def process_options(self, guild: discord.Guild, options: list, auto_conver
566566
types = {
567567
"user": 0,
568568
"USER": 0,
569-
SlashCommandOptionType.USER: 0,
569+
model.SlashCommandOptionType.USER: 0,
570570
"6": 0,
571+
6: 0,
571572
"channel": 1,
572573
"CHANNEL": 1,
573-
SlashCommandOptionType.CHANNEL: 1,
574+
model.SlashCommandOptionType.CHANNEL: 1,
574575
"7": 1,
576+
7: 1,
575577
"role": 2,
576578
"ROLE": 2,
577-
SlashCommandOptionType.ROLE: 2,
579+
model.SlashCommandOptionType.ROLE: 2,
580+
8: 2,
578581
"8": 2
579582
}
580583

discord_slash/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import typing
22
import discord
3+
from enum import IntEnum
34
from discord.ext import commands
45
from . import http
56
from . import error
6-
from enum import IntEnum
77

88

99
class SlashContext:

0 commit comments

Comments
 (0)