Skip to content

Commit 6dd02a3

Browse files
committed
Rename subcommand to subcommand_name
1 parent d25d1e8 commit 6dd02a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord_slash/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SlashContext:
1414
Do not manually init this model.
1515
1616
:ivar name: Name of the command.
17-
:ivar subcommand: Subcommand of the command.
17+
:ivar subcommand_name: Subcommand of the command.
1818
:ivar subcommand_group: Subcommand group of the command.
1919
:ivar interaction_id: Interaction ID of the command message.
2020
:ivar command_id: ID of the command.
@@ -34,7 +34,7 @@ def __init__(self,
3434
logger):
3535
self.__token = _json["token"]
3636
self.name = _json["data"]["name"]
37-
self.subcommand = None
37+
self.subcommand_name = None
3838
self.subcommand_group = None
3939
self.interaction_id = _json["id"]
4040
self.command_id = _json["data"]["id"]

0 commit comments

Comments
 (0)