You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: discord_slash/client.py
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ class SlashCommand:
22
22
:type sync_commands: bool
23
23
:param delete_from_unused_guilds: If the bot should make a request to set no commands for guilds that haven't got any commands registered in :class:``SlashCommand``. Default `False`.
24
24
:type delete_from_unused_guilds: bool
25
-
:param sync_on_cog_edit: Whether to sync commands on cog load/unload/reload. Default `False`.
26
-
:type sync_on_cog_edit: bool
25
+
:param sync_on_cog_reload: Whether to sync commands on cog reload. Default `False`.
26
+
:type sync_on_cog_reload: bool
27
27
:param override_type: Whether to override checking type of the client and try register event.
28
28
:type override_type: bool
29
29
@@ -32,23 +32,23 @@ class SlashCommand:
32
32
:ivar req: :class:`.http.SlashCommandRequest` of this client.
33
33
:ivar logger: Logger of this client.
34
34
:ivar sync_commands: Whether to sync commands automatically.
35
-
:ivar sync_on_cog_edit: Whether to sync commands on cog load/unload/reload.
35
+
:ivar sync_on_cog_reload: Whether to sync commands on cog reload.
36
36
:ivar has_listener: Whether discord client has listener add function.
0 commit comments