# Изменение того, кто может использовать джишаку

`jishaku` К группе команд применяется проверка владельца и ко всем подкомандам. Чтобы изменить, кто может использовать джишаку, вам необходимо изменить способ определения владельца в вашем боте:

```python
class MyBot(commands.Bot):
    async def is_owner(self, user: discord.User):
        if something:  # Реализуйте свои условия здесь
            return True

        # Иначе вернитесь к оригиналу
        return await super().is_owner(user)
```

Это **единственный** поддерживаемый метод изменения того, кто может использовать джишаку.

jishaku — мощный инструмент: предоставление людям доступа к нему эквивалентно предоставлению им прямого доступа к вашему компьютеру, поэтому вам следует серьезно подумать о том, следует ли вам вообще определять, кто может его использовать.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mayaais-organization.gitbook.io/dobro-pozhalovat/izmenenie-togo-kto-mozhet-ispolzovat-dzhishaku.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
