We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94de0be commit 9d20db2Copy full SHA for 9d20db2
discord/commands/permissions.py
@@ -199,6 +199,19 @@ def decorator(func: Callable):
199
return decorator
200
201
def is_owner(guild_id: int = None):
202
+ """The method used to limit application commands exclusively
203
+ to the owner of the bot.
204
+
205
+ This method is meant to be used as a decorator.
206
207
+ .. versionadded:: 2.0
208
209
+ Attributes
210
+ -----------
211
+ guild_id: :class:`int`
212
+ The integer which represents the id of the guild that the
213
+ permission may be tied to.
214
+ """
215
def decorator(func: Callable):
216
# Create __app_cmd_perms__
217
if not hasattr(func, '__app_cmd_perms__'):
0 commit comments