Skip to content

Commit e9ea927

Browse files
committed
Removed deprecated param
1 parent 269be61 commit e9ea927

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

discord_slash/client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ def slash(self,
470470
*,
471471
name: str = None,
472472
description: str = None,
473-
guild_id: int = None,
474473
guild_ids: typing.List[int] = None,
475474
options: typing.List[dict] = None,
476475
connector: dict = None):
@@ -519,19 +518,14 @@ async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
519518
:type name: str
520519
:param description: Description of the slash command. Default ``None``.
521520
:type description: str
522-
:param guild_id: Deprecated. Use ``guild_ids`` instead.
523-
:type guild_id: int
524521
:param guild_ids: List of Guild ID of where the command will be used. Default ``None``, which will be global command.
525522
:type guild_ids: List[int]
526523
:param options: Options of the slash command. This will affect ``auto_convert`` and command data at Discord API. Default ``None``.
527524
:type options: List[dict]
528525
:param connector: Kwargs connector for the command. Default ``None``.
529526
:type connector: dict
530527
"""
531-
if guild_id:
532-
self.logger.warning("`guild_id` is deprecated! `Use guild_ids` instead.")
533-
guild_ids = [guild_id]
534-
528+
535529
def wrapper(cmd):
536530
obj = self.add_slash_command(cmd, name, description, guild_ids, options, connector)
537531
return obj

0 commit comments

Comments
 (0)