> For the complete documentation index, see [llms.txt](https://micup.renbow.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://micup.renbow.dev/hizli-basvuru.md).

# Hızlı başvuru

```python
from micup import Bot, Permissions, MicupAPIError, Message, User, Voice, AuditAction
from micup import snowflake_to_datetime

bot = Bot(token=None, ignored_events=None, origin="https://micup.gg", presence=None)

@bot.command("!prefix")
async def komut(msg): ...

@bot.on("message_create")
async def olay(msg): ...

bot.run()                                   # başlat
await bot.start()                           # asenkron başlat
await bot.close()                           # kapat
bot.is_ready()

# Mesaj
await bot.send_message(ch, "metin", reply_to=None, **fields)
await bot.edit_message(ch, mid, "yeni metin")
await bot.delete_message(ch, mid)
await bot.bulk_delete(ch, [id1, id2])
await bot.get_messages(ch, limit=50, before=None, after=None, around=None)
await bot.get_user(uid)
await bot.rest("GET", "/yol", body=None)

# Moderasyon
await bot.ban(gid, uid, reason=None, delete_message_seconds=0, duration_seconds=None)
await bot.unban(gid, uid)
await bot.list_bans(gid)
await bot.kick(gid, uid)
await bot.timeout(gid, uid, minutes=None, until=None, reason=None)
await bot.clear_timeout(gid, uid)

# Roller ve sesli üyeler
await bot.add_role(gid, uid, rid)
await bot.remove_role(gid, uid, rid)
await bot.set_voice_mute(gid, uid, True)
await bot.set_voice_deaf(gid, uid, True)
await bot.disconnect_member(gid, uid, connection_id=None)
await bot.move_member(gid, uid, ch, connection_id=None)

# Kanallar
await bot.get_channel(ch)
await bot.create_channel(gid, "ad", type=0, topic=None, parent_id=None)
await bot.edit_channel(ch, name="yeni ad")
await bot.delete_channel(ch)
await bot.set_slowmode(ch, 10)              # 0-21600, 0 kapatır
await bot.purge(ch, limit=10)

# Sabitleme
await bot.pin_message(ch, mid, reason=None)
await bot.unpin_message(ch, mid, reason=None)
await bot.list_pins(ch, limit=50, before=None)

# Tepkiler
await bot.add_reaction(ch, mid, "👍")
await bot.remove_own_reaction(ch, mid, "👍")
await bot.remove_user_reaction(ch, mid, "👍", uid)
await bot.remove_emoji_reactions(ch, mid, "👍")
await bot.remove_all_reactions(ch, mid)
await bot.list_reaction_users(ch, mid, "👍", limit=25, after=None)

# Dosya ve denetim kaydı
await bot.send_file(ch, "dosya.pdf", content="açıklama")
await bot.upload_attachment(ch, "dosya.pdf")
await bot.list_audit_logs(gid, limit=50, before=None, after=None, user_id=None, action_type=None)

# Durum
await bot.set_presence("online", afk=False, mobile=False, custom_status=None)

# Ses
await bot.voice.join(gid, ch, self_mute=False, self_deaf=False, self_video=False,
                     timeout=15.0, state_timeout=60.0, media=True)
bot.voice.get_states(gid)
await bot.voice.update(gid, self_mute=None, self_deaf=None, self_video=None)
await bot.voice.play_wav(gid, "ses.wav")
await bot.voice.leave(gid)
await bot.voice.disconnect_all()

# Mesaj nesnesi
await msg.reply("metin"); await msg.send("metin"); await msg.edit("metin"); await msg.delete()
msg.args; msg.content; msg.author; msg.channel_id; msg.guild_id; msg.is_bot

Permissions.has(mask, Permissions.MANAGE_MESSAGES)
snowflake_to_datetime("ID")
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://micup.renbow.dev/hizli-basvuru.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
