Skip to content

Commit

Permalink
Rename subcommand to subcommand_name
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoo1104 committed Dec 20, 2020
1 parent d25d1e8 commit 6dd02a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord_slash/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SlashContext:
Do not manually init this model.
:ivar name: Name of the command.
:ivar subcommand: Subcommand of the command.
:ivar subcommand_name: Subcommand of the command.
:ivar subcommand_group: Subcommand group of the command.
:ivar interaction_id: Interaction ID of the command message.
:ivar command_id: ID of the command.
Expand All @@ -34,7 +34,7 @@ def __init__(self,
logger):
self.__token = _json["token"]
self.name = _json["data"]["name"]
self.subcommand = None
self.subcommand_name = None
self.subcommand_group = None
self.interaction_id = _json["id"]
self.command_id = _json["data"]["id"]
Expand Down

0 comments on commit 6dd02a3

Please sign in to comment.