{
 "name": "discord-interactions-py",
 "package": "levraiberet-discord-interactions",
 "import": "discord_interactions",
 "version": "0.3.0",
 "requires": {
  "python": ">=3.9",
  "discord.py": ">=2.6"
 },
 "docs": {
  "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/",
  "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/"
 },
 "rules": [
  "Install `pip install levraiberet-discord-interactions`, import `discord_interactions` (slash commands: `discord_interactions.slash`). Python 3.9+, discord.py 2.6+.",
  "Do NOT use `discord.ui.View`, `discord.ui.Button`, `discord.ui.Modal` or `app_commands`: this module replaces them. Components are plain dicts built by `create_*` functions or builders (`container()`, `section()`, `ModalBuilder`).",
  "One entry point for components: `router = InteractionRouter()` and `@client.event async def on_interaction(interaction): await router.handle(interaction)`. Slash commands are handled by `slash = SlashManager(client)` on its own (auto-synced on ready).",
  "Routing uses the `base_id`, the part of `custom_id` before `:`. `@router.on(\"id\")` for buttons and selects, `@router.modal(\"id\")` for modals. Handler signature: `(interaction)`, `(interaction, data)` or `(interaction, data, base_id)`; for a modal, `data` holds the submitted values.",
  "`create_button(\"id\", \"Label\", data={...})` stores data in the custom_id (100 characters max in total) and it comes back as `data`. Use `create_signed_button` / `parse_signed_custom_id` when the data must not be forged.",
  "Every interaction must be answered within 3 seconds, exactly once: `respond_to_interaction`, `update_message` (edits the clicked message), `send_modal`, or `defer_interaction` then `send_followup` / `edit_original_response`. `respond()` and `ctx.respond()` switch to a followup automatically.",
  "A modal must be the first response (never after a defer). 5 components max per modal. Read values with `values[\"id\"]`: `str` for text and radio, `bool` for a checkbox, `list` for selects, checkbox groups and uploads.",
  "Select values are always a list. Users, roles, channels: `parse_values(interaction).users(\"id\")`, `.roles(\"id\")`, `.channels(\"id\")`, `.mentionables(\"id\")`.",
  "Components V2 (`container`, `section`, `mediaGallery`, `separator`, `textDisplay`) cannot be mixed with embeds. The IS_COMPONENTS_V2 flag is added automatically and `content` is turned into a text display.",
  " Discord limits: 5 buttons per row, 5 rows (V1), 25 select options, 80-character button labels, unique custom_id per message."
 ],
 "entries": [
  {
   "name": "create_button",
   "kind": "function",
   "section": "components.buttons",
   "import": "from discord_interactions import create_button",
   "aliases": [],
   "signature": "def create_button(custom_id: str = '', label: str = '', style: str | int = 1, emoji: str | Dict[str, Any] | Any | None = None, data: Dict[str, Any] | None = None, disabled: bool = False, url: str | None = None, sku_id: int | str | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Crée un bouton. Les données passées dans `data` voyagent dans le `custom_id` et reviennent au clic.",
    "en": "Creates a button. Values passed in `data` travel inside the `custom_id` and come back on click."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_button\n\nbutton = create_button(\n    \"buy\",\n    \"Buy\",\n    style=\"success\",\n    emoji=\"<:coin:123456789012345678>\",\n    data={\"item\": 42},\n)\nawait ctx.respond(\"Shop\", components=[create_action_row(button)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_button/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_button/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_button/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_button/index.md"
   }
  },
  {
   "name": "create_link_button",
   "kind": "function",
   "section": "components.buttons",
   "import": "from discord_interactions import create_link_button",
   "aliases": [],
   "signature": "def create_link_button(url: str, label: str = '', emoji: str | Dict[str, Any] | Any | None = None, disabled: bool = False) -> Dict[str, Any]",
   "summary": {
    "fr": "Bouton qui ouvre une URL. Aucun événement n'est envoyé au bot.",
    "en": "Button that opens a URL. No event reaches the bot."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_link_button\n\nlink = create_link_button(\"https://discord.com/developers/docs\", \"Discord documentation\")\nawait ctx.respond(components=[create_action_row(link)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_link_button/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_link_button/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_link_button/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_link_button/index.md"
   }
  },
  {
   "name": "create_premium_button",
   "kind": "function",
   "section": "components.buttons",
   "import": "from discord_interactions import create_premium_button",
   "aliases": [],
   "signature": "def create_premium_button(sku_id: int | str, disabled: bool = False) -> Dict[str, Any]",
   "summary": {
    "fr": "Bouton d'achat d'un SKU de ton application (monétisation Discord).",
    "en": "Purchase button for one of your application's SKUs (Discord monetization)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import container, create_premium_button\n\nawait ctx.respond(components=[container(\"## Premium pass\").row(create_premium_button(1234567890123456789))])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_premium_button/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_premium_button/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_premium_button/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_premium_button/index.md"
   }
  },
  {
   "name": "create_channel_select_menu",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import create_channel_select_menu",
   "aliases": [],
   "signature": "def create_channel_select_menu(custom_id: str, placeholder: str | None = 'Select channels', min_values: int | None = 1, max_values: int | None = 1, disabled: bool = False, default_values: Sequence[Any] | None = None, channel_types: Sequence[int] | None = None, required: bool | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Menu de sélection de salons, filtrable par type.",
    "en": "Channel select menu, filterable by type."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import ChannelTypes, create_action_row, create_channel_select_menu\n\nmenu = create_channel_select_menu(\"logs\", \"Log channel\", channel_types=ChannelTypes.TEXT_CHANNELS)\nawait ctx.respond(components=[create_action_row(menu)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_channel_select_menu/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_channel_select_menu/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_channel_select_menu/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_channel_select_menu/index.md"
   }
  },
  {
   "name": "create_entity_select_menu",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import create_entity_select_menu",
   "aliases": [],
   "signature": "def create_entity_select_menu(custom_id: str, select_type: int, placeholder: str | None = 'Select', min_values: int | None = 1, max_values: int | None = 1, disabled: bool = False, default_values: Sequence[Any] | None = None, channel_types: Sequence[int] | None = None, required: bool | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Menu de sélection d'entités générique : utilisateurs (5), rôles (6), mentionnables (7) ou salons (8).",
    "en": "Generic entity select menu: users (5), roles (6), mentionables (7) or channels (8)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import ComponentType, create_action_row, create_entity_select_menu\n\n# Generic version: select_type picks the kind of menu.\n# Same as create_role_select_menu(\"staff\", \"Staff role\").\nmenu = create_entity_select_menu(\"staff\", ComponentType.RoleSelect, placeholder=\"Staff role\")\nawait ctx.respond(components=[create_action_row(menu)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_entity_select_menu/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_entity_select_menu/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_entity_select_menu/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_entity_select_menu/index.md"
   }
  },
  {
   "name": "create_mentionable_select_menu",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import create_mentionable_select_menu",
   "aliases": [],
   "signature": "def create_mentionable_select_menu(custom_id: str, placeholder: str | None = 'Select mentionables', min_values: int | None = 1, max_values: int | None = 1, disabled: bool = False, default_values: Sequence[Any] | None = None, required: bool | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Menu de sélection d'utilisateurs et de rôles mélangés.",
    "en": "Select menu mixing users and roles."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_mentionable_select_menu, parse_values\n\n# A menu offering both members and roles\nmenu = create_mentionable_select_menu(\"ping\", \"Who should be notified?\", max_values=5)\nawait ctx.respond(components=[create_action_row(menu)])\n\n@router.select(\"ping\")\nasync def ping(interaction):\n    targets = parse_values(interaction).mentionables(\"ping\")  # members and roles mixed\n    await respond_to_interaction(interaction, \" \".join(t.mention for t in targets))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_mentionable_select_menu/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_mentionable_select_menu/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_mentionable_select_menu/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_mentionable_select_menu/index.md"
   }
  },
  {
   "name": "create_role_select_menu",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import create_role_select_menu",
   "aliases": [],
   "signature": "def create_role_select_menu(custom_id: str, placeholder: str | None = 'Select roles', min_values: int | None = 1, max_values: int | None = 1, disabled: bool = False, default_values: Sequence[Any] | None = None, required: bool | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Menu de sélection de rôles.",
    "en": "Role select menu."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_role_select_menu, parse_values\n\n# 1. Send: a menu listing the server's roles\nmenu = create_role_select_menu(\"auto_roles\", \"Pick your roles\", min_values=0, max_values=3)\nawait ctx.respond(\"Which roles do you want?\", components=[create_action_row(menu)])\n\n# 2. Receive: read the chosen roles\n@router.select(\"auto_roles\")\nasync def auto_roles(interaction):\n    roles = parse_values(interaction).roles(\"auto_roles\")\n    await interaction.user.add_roles(*roles)\n    await respond_to_interaction(interaction, f\"{len(roles)} role(s) added.\", ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_role_select_menu/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_role_select_menu/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_role_select_menu/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_role_select_menu/index.md"
   }
  },
  {
   "name": "create_select_menu",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import create_select_menu",
   "aliases": [],
   "signature": "def create_select_menu(custom_id: str, placeholder: str | None = 'Select an option', options: Sequence[Any] | None = None, min_values: int | None = 1, max_values: int | None = 1, disabled: bool = False, required: bool | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Menu de sélection de texte (25 options max). Les options acceptent dicts, tuples ou chaînes.",
    "en": "Text select menu (25 options max). Options accept dicts, tuples or strings."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_select_menu, select_option\n\nmenu = create_select_menu(\n    \"language\",\n    placeholder=\"Your language\",\n    options=[\n        select_option(\"Python\", \"py\", emoji=\"🐍\"),\n        select_option(\"Rust\", \"rs\", emoji=\"🦀\"),\n        \"JavaScript\",\n    ],\n)\nawait ctx.respond(components=[create_action_row(menu)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_select_menu/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_select_menu/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_select_menu/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_select_menu/index.md"
   }
  },
  {
   "name": "create_user_select_menu",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import create_user_select_menu",
   "aliases": [],
   "signature": "def create_user_select_menu(custom_id: str, placeholder: str | None = 'Select users', min_values: int | None = 1, max_values: int | None = 1, disabled: bool = False, default_values: Sequence[Any] | None = None, required: bool | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Menu de sélection d'utilisateurs ou de membres.",
    "en": "User or member select menu."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_user_select_menu\n\nmenu = create_user_select_menu(\"team\", \"Pick your teammates\", max_values=4, default_values=[ctx.user])\nawait ctx.respond(components=[create_action_row(menu)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_user_select_menu/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_user_select_menu/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_user_select_menu/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_user_select_menu/index.md"
   }
  },
  {
   "name": "default_value",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import default_value",
   "aliases": [],
   "signature": "def default_value(value: Any, kind: str) -> Dict[str, str]",
   "summary": {
    "fr": "Valeur présélectionnée d'un menu d'entités.",
    "en": "Pre-selected value of an entity select menu."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_role_select_menu, default_value\n\n# Pre-select values when the menu opens (here: the role already configured)\ncurrent_role = 123456789012345678\nmenu = create_role_select_menu(\n    \"welcome_role\",\n    \"Role given to newcomers\",\n    default_values=[default_value(current_role, \"role\")],\n)\nawait ctx.respond(components=[create_action_row(menu)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/default_value/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/default_value/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/default_value/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/default_value/index.md"
   }
  },
  {
   "name": "select_option",
   "kind": "function",
   "section": "components.selects",
   "import": "from discord_interactions import select_option",
   "aliases": [],
   "signature": "def select_option(label: str, value: str | None = None, description: str | None = None, emoji: str | Dict[str, Any] | Any | None = None, default: bool | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Option de menu de sélection, de groupe radio ou de cases à cocher.",
    "en": "Option for a select menu, a radio group or a checkbox group."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_select_menu, select_option\n\n# label = text shown, value = what your code receives\nmenu = create_select_menu(\n    \"pizza\",\n    placeholder=\"Your pizza\",\n    options=[\n        select_option(\"Margherita\", \"marg\", description=\"Tomato, mozzarella\", emoji=\"🍅\"),\n        select_option(\"Four cheese\", \"4c\", default=True),  # already selected\n        select_option(\"Veggie\"),  # value = label when omitted\n    ],\n)\nawait ctx.respond(components=[create_action_row(menu)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/select_option/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/select_option/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/select_option/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/select_option/index.md"
   }
  },
  {
   "name": "ActionRowBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import ActionRowBuilder",
   "aliases": [],
   "signature": "class ActionRowBuilder(*components: Any) -> None",
   "summary": {
    "fr": "Builder de rangée d'actions.",
    "en": "Action row builder."
   },
   "methods": [
    "def addComponents(*components: Any) -> ActionRowBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ActionRowBuilder, create_button\n\nrow = ActionRowBuilder(create_button(\"yes\", \"Yes\", style=\"success\")).addComponents(\n    create_button(\"no\", \"No\", style=\"danger\")\n)\nawait ctx.respond(\"Are you sure?\", components=[row.build()])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ActionRowBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ActionRowBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ActionRowBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ActionRowBuilder/index.md"
   }
  },
  {
   "name": "ContainerBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import ContainerBuilder",
   "aliases": [],
   "signature": "class ContainerBuilder(*components: Any, accent_color: int | None = None, spoiler: bool = False) -> None",
   "summary": {
    "fr": "Builder chaînable de container V2. Chaque méthode renvoie le builder ; termine par `build()`.",
    "en": "Chainable container V2 builder. Every method returns the builder; finish with `build()`."
   },
   "methods": [
    "def setAccentColor(color: int | None) -> ContainerBuilder",
    "def setSpoiler(spoiler: bool = True) -> ContainerBuilder",
    "def add(*components: Any) -> ContainerBuilder",
    "def addTextDisplayComponents(*text_displays: Any) -> ContainerBuilder",
    "def addSeparatorComponents(separator: Any | None = None) -> ContainerBuilder",
    "def addSectionComponents(*sections: Any) -> ContainerBuilder",
    "def addMediaGalleryComponents(*galleries: Any) -> ContainerBuilder",
    "def addFileComponents(*files: Any) -> ContainerBuilder",
    "def addActionRowComponents(action_row: Any) -> ContainerBuilder",
    "def text(content: str) -> ContainerBuilder",
    "def separator(divider: bool = True, spacing: int | str = 1) -> ContainerBuilder",
    "def gallery(*urls: Any) -> ContainerBuilder",
    "def file(filename: str, spoiler: bool = False) -> ContainerBuilder",
    "def row(*components: Any) -> ContainerBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ContainerBuilder, textDisplay\n\ncard = (\n    ContainerBuilder()\n    .setAccentColor(0x57F287)\n    .addTextDisplayComponents(textDisplay(\"## discord.js style\"))\n    .addSeparatorComponents()\n    .addTextDisplayComponents(textDisplay(\"camelCase names are available too.\"))\n    .build()\n)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ContainerBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ContainerBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ContainerBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ContainerBuilder/index.md"
   }
  },
  {
   "name": "FileBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import FileBuilder",
   "aliases": [],
   "signature": "class FileBuilder(filename: str = '', spoiler: bool = False) -> None",
   "summary": {
    "fr": "Builder de fichier joint.",
    "en": "Attached file builder."
   },
   "methods": [
    "def setFile(filename: str) -> FileBuilder",
    "def setSpoiler(spoiler: bool = True) -> FileBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "import discord\nfrom discord_interactions import ContainerBuilder, FileBuilder\n\n# The file is sent as an attachment, then shown in the container through attachment://\nfile = discord.File(\"export.csv\")\ncard = ContainerBuilder().addTextDisplayComponents(\"## Export\").addFileComponents(\n    FileBuilder().setFile(\"export.csv\")\n)\nawait ctx.respond(components=[card.build()], files=[file])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/FileBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/FileBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/FileBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/FileBuilder/index.md"
   }
  },
  {
   "name": "MediaGalleryBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import MediaGalleryBuilder",
   "aliases": [],
   "signature": "class MediaGalleryBuilder(*urls: Any) -> None",
   "summary": {
    "fr": "Builder de galerie ; `add()` ajoute une image avec texte alternatif ou spoiler.",
    "en": "Gallery builder; `add()` appends an image with alt text or spoiler."
   },
   "methods": [
    "def addItem(url: Any, description: str | None = None, spoiler: bool = False) -> MediaGalleryBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ContainerBuilder, MediaGalleryBuilder\n\ngallery = (\n    MediaGalleryBuilder()\n    .addItem(\"https://example.com/before.png\", description=\"Before\")\n    .addItem(\"https://example.com/after.png\", description=\"After\")\n)\nawait ctx.respond(components=[ContainerBuilder().addMediaGalleryComponents(gallery).build()])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MediaGalleryBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MediaGalleryBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MediaGalleryBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MediaGalleryBuilder/index.md"
   }
  },
  {
   "name": "SectionBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import SectionBuilder",
   "aliases": [],
   "signature": "class SectionBuilder() -> None",
   "summary": {
    "fr": "Builder de section : textes à gauche, bouton ou miniature à droite.",
    "en": "Section builder: texts on the left, button or thumbnail on the right."
   },
   "methods": [
    "def addTextDisplayComponents(*text_displays: Any) -> SectionBuilder",
    "def setButtonAccessory(button: Any) -> SectionBuilder",
    "def setThumbnailAccessory(thumbnail: Any, description: str | None = None) -> SectionBuilder",
    "def accessory(component: Any) -> SectionBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ContainerBuilder, SectionBuilder, create_button\n\n# A section = 1 to 3 texts on the left + a button or a thumbnail on the right\nrow = (\n    SectionBuilder()\n    .addTextDisplayComponents(\"**Starter pack**\", \"500 coins\")\n    .setButtonAccessory(create_button(\"buy_pack\", \"Buy\", style=\"success\"))\n)\nawait ctx.respond(components=[ContainerBuilder().addSectionComponents(row).build()])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SectionBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SectionBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SectionBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SectionBuilder/index.md"
   }
  },
  {
   "name": "SeparatorBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import SeparatorBuilder",
   "aliases": [],
   "signature": "class SeparatorBuilder(divider: bool = True, spacing: int | str = 1) -> None",
   "summary": {
    "fr": "Builder de séparateur.",
    "en": "Separator builder."
   },
   "methods": [
    "def setDivider(divider: bool) -> SeparatorBuilder",
    "def setSpacing(spacing: int | str) -> SeparatorBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ContainerBuilder, SeparatorBuilder, SeparatorSpacing\n\ncard = (\n    ContainerBuilder()\n    .addTextDisplayComponents(\"## Part 1\")\n    .addSeparatorComponents(SeparatorBuilder().setSpacing(SeparatorSpacing.Large))\n    .addTextDisplayComponents(\"## Part 2\")\n)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SeparatorBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SeparatorBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SeparatorBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SeparatorBuilder/index.md"
   }
  },
  {
   "name": "TextDisplayBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import TextDisplayBuilder",
   "aliases": [],
   "signature": "class TextDisplayBuilder(content: str = '') -> None",
   "summary": {
    "fr": "Builder de bloc de texte.",
    "en": "Text block builder."
   },
   "methods": [
    "def setContent(content: str) -> TextDisplayBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ContainerBuilder, TextDisplayBuilder\n\ntext = TextDisplayBuilder().setContent(\"**Bold**, *italic* and `code`: Markdown works.\")\nawait ctx.respond(components=[ContainerBuilder().addTextDisplayComponents(text).build()])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/TextDisplayBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/TextDisplayBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/TextDisplayBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/TextDisplayBuilder/index.md"
   }
  },
  {
   "name": "ThumbnailBuilder",
   "kind": "class",
   "section": "components.builders",
   "import": "from discord_interactions import ThumbnailBuilder",
   "aliases": [],
   "signature": "class ThumbnailBuilder(url: Any = '', description: str | None = None, spoiler: bool = False) -> None",
   "summary": {
    "fr": "Builder de miniature.",
    "en": "Thumbnail builder."
   },
   "methods": [
    "def setURL(url: Any) -> ThumbnailBuilder",
    "def setDescription(description: str | None) -> ThumbnailBuilder",
    "def setSpoiler(spoiler: bool = True) -> ThumbnailBuilder",
    "def to_dict() -> Dict[str, Any]",
    "def id(component_id: int)",
    "def build() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import SectionBuilder, ThumbnailBuilder\n\n# Thumbnail on the right of a section, for example a member's avatar\navatar = ThumbnailBuilder().setURL(member.display_avatar.url).setDescription(\"Avatar\")\nrow = SectionBuilder().addTextDisplayComponents(f\"## {member.display_name}\").setThumbnailAccessory(avatar)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ThumbnailBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ThumbnailBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ThumbnailBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ThumbnailBuilder/index.md"
   }
  },
  {
   "name": "actionRow",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import actionRow",
   "aliases": [],
   "signature": "def actionRow(*components: Any) -> ActionRowBuilder",
   "summary": {
    "fr": "Raccourci de `ActionRowBuilder(*components)`.",
    "en": "Shortcut for `ActionRowBuilder(*components)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import actionRow, create_button\n\nawait ctx.respond(components=[actionRow(create_button(\"a\", \"A\"), create_button(\"b\", \"B\")).build()])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/actionRow/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/actionRow/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/actionRow/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/actionRow/index.md"
   }
  },
  {
   "name": "container",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import container",
   "aliases": [],
   "signature": "def container(*components: Any, accent_color: int | None = None, spoiler: bool = False) -> ContainerBuilder",
   "summary": {
    "fr": "Raccourci de `ContainerBuilder(...)`.",
    "en": "Shortcut for `ContainerBuilder(...)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import container, create_button, section\n\ncard = (\n    container(accent_color=0x5865F2)\n    .add(\"## Minecraft server\")\n    .add(section(\"**Online**\", \"12 players\").thumbnail(\"https://example.com/logo.png\"))\n    .separator()\n    .row(create_button(\"join\", \"Join\", style=\"success\"))\n)\nawait ctx.respond(components=[card])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/container/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/container/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/container/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/container/index.md"
   }
  },
  {
   "name": "fileComponent",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import fileComponent",
   "aliases": [],
   "signature": "def fileComponent(filename: str, spoiler: bool = False) -> FileBuilder",
   "summary": {
    "fr": "Raccourci de `FileBuilder(filename, spoiler)`.",
    "en": "Shortcut for `FileBuilder(filename, spoiler)`."
   },
   "methods": [],
   "values": null,
   "example": "import discord\nfrom discord_interactions import container, fileComponent\n\ncard = container(\"## Invoice\").add(fileComponent(\"invoice.pdf\"))\nawait ctx.respond(components=[card], files=[discord.File(\"invoice.pdf\")])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/fileComponent/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/fileComponent/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/fileComponent/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/fileComponent/index.md"
   }
  },
  {
   "name": "mediaGallery",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import mediaGallery",
   "aliases": [],
   "signature": "def mediaGallery(*urls: Any) -> MediaGalleryBuilder",
   "summary": {
    "fr": "Raccourci de `MediaGalleryBuilder(*urls)`.",
    "en": "Shortcut for `MediaGalleryBuilder(*urls)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import container, mediaGallery\n\ngallery = mediaGallery(\"https://example.com/1.png\", \"https://example.com/2.png\").add(\n    \"https://example.com/3.png\", description=\"Preview\", spoiler=True\n)\nawait ctx.respond(components=[container(\"## Screenshots\").add(gallery)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/mediaGallery/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/mediaGallery/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/mediaGallery/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/mediaGallery/index.md"
   }
  },
  {
   "name": "section",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import section",
   "aliases": [],
   "signature": "def section(*texts: Any) -> SectionBuilder",
   "summary": {
    "fr": "Raccourci de `SectionBuilder` avec ses textes.",
    "en": "Shortcut for `SectionBuilder` with its texts."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_button, section\n\nrow = section(\"**Notifications**\", \"Get a message for every announcement.\").button(\n    create_button(\"notify\", \"Enable\", style=\"secondary\")\n)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/section/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/section/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/section/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/section/index.md"
   }
  },
  {
   "name": "separator",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import separator",
   "aliases": [],
   "signature": "def separator(divider: bool = True, spacing: int | str = 1) -> SeparatorBuilder",
   "summary": {
    "fr": "Raccourci de `SeparatorBuilder(divider, spacing)`.",
    "en": "Shortcut for `SeparatorBuilder(divider, spacing)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import container, separator\n\ncard = container(\"Before\").add(separator(spacing=\"large\")).add(\"After\").add(separator(divider=False)).add(\"End\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/separator/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/separator/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/separator/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/separator/index.md"
   }
  },
  {
   "name": "textDisplay",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import textDisplay",
   "aliases": [],
   "signature": "def textDisplay(content: str = '') -> TextDisplayBuilder",
   "summary": {
    "fr": "Raccourci de `TextDisplayBuilder(content)`.",
    "en": "Shortcut for `TextDisplayBuilder(content)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import textDisplay\n\n# A text on its own, without a container: it looks like a normal message\nawait ctx.respond(components=[textDisplay(\"Hello **everyone**\").build()])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/textDisplay/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/textDisplay/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/textDisplay/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/textDisplay/index.md"
   }
  },
  {
   "name": "thumbnail",
   "kind": "function",
   "section": "components.builders",
   "import": "from discord_interactions import thumbnail",
   "aliases": [],
   "signature": "def thumbnail(url: Any, description: str | None = None, spoiler: bool = False) -> ThumbnailBuilder",
   "summary": {
    "fr": "Raccourci de `ThumbnailBuilder(url, description, spoiler)`.",
    "en": "Shortcut for `ThumbnailBuilder(url, description, spoiler)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import section, thumbnail\n\nrow = section(\"## Weather\", \"18 °C, sunny\").accessory(thumbnail(\"https://example.com/sun.png\"))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/thumbnail/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/thumbnail/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/thumbnail/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/thumbnail/index.md"
   }
  },
  {
   "name": "create_action_row",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_action_row",
   "aliases": [],
   "signature": "def create_action_row(*components: Any, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Rangée d'actions (type 1) : jusqu'à 5 boutons ou un seul menu de sélection.",
    "en": "Action row (type 1): up to 5 buttons or a single select menu."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_button\n\n# Up to 5 buttons per row, or a single select menu\nrow = create_action_row(\n    create_button(\"prev\", \"◀\"),\n    create_button(\"next\", \"▶\"),\n)\nawait ctx.respond(\"Page 1/3\", components=[row])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_action_row/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_action_row/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_action_row/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_action_row/index.md"
   }
  },
  {
   "name": "create_button_row",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_button_row",
   "aliases": [],
   "signature": "def create_button_row(*buttons: Any) -> Dict[str, Any]",
   "summary": {
    "fr": "Rangée de boutons. Équivalent de `create_action_row`.",
    "en": "Row of buttons. Same as `create_action_row`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_button, create_button_row\n\nrow = create_button_row(create_button(\"yes\", \"Yes\"), create_button(\"no\", \"No\"))\nawait ctx.respond(\"Continue?\", components=[row])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_button_row/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_button_row/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_button_row/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_button_row/index.md"
   }
  },
  {
   "name": "create_container",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_container",
   "aliases": [],
   "signature": "def create_container(*components: Any, accent_color: int | None = None, spoiler: bool = False, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Container (type 17) : la carte qui regroupe les composants V2. Une chaîne devient un texte.",
    "en": "Container (type 17): the card grouping components V2. A string becomes a text block."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_container, create_separator, create_text_display_component\n\ncard = create_container(\n    create_text_display_component(\"## Rules\"),\n    create_separator(),\n    create_text_display_component(\"1. Be respectful\\n2. No spam\"),\n    accent_color=0xED4245,\n)\nawait ctx.respond(components=[card])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_container/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_container/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_container/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_container/index.md"
   }
  },
  {
   "name": "create_file",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_file",
   "aliases": [],
   "signature": "def create_file(filename: str, spoiler: bool = False, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Fichier joint affiché dans le message (type 13). Le fichier doit être envoyé avec `files=`.",
    "en": "Attached file shown in the message (type 13). Send the file itself with `files=`."
   },
   "methods": [],
   "values": null,
   "example": "import discord\nfrom discord_interactions import container, create_file\n\nfile = discord.File(\"report.pdf\")\ncard = container(\"## Monthly report\").add(create_file(\"report.pdf\"))\nawait ctx.respond(components=[card], files=[file])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_file/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_file/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_file/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_file/index.md"
   }
  },
  {
   "name": "create_media_gallery",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_media_gallery",
   "aliases": [],
   "signature": "def create_media_gallery(*items: Any, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Galerie de 1 à 10 images ou vidéos (type 12).",
    "en": "Gallery of 1 to 10 images or videos (type 12)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_container, create_media_gallery, create_media_item\n\ngallery = create_media_gallery(\n    \"https://example.com/1.png\",  # a URL is enough\n    (\"https://example.com/2.png\", \"With a caption\"),  # or (url, description)\n    create_media_item(\"https://example.com/3.png\", spoiler=True),  # or a full item\n)\nawait ctx.respond(components=[create_container(gallery)])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_media_gallery/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_media_gallery/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_media_gallery/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_media_gallery/index.md"
   }
  },
  {
   "name": "create_media_item",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_media_item",
   "aliases": [],
   "signature": "def create_media_item(url: str | Dict[str, Any], description: str | None = None, spoiler: bool = False) -> Dict[str, Any]",
   "summary": {
    "fr": "Élément de galerie : média, texte alternatif et spoiler.",
    "en": "Gallery item: media, alt text and spoiler."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_media_gallery, create_media_item\n\nimage = create_media_item(\"https://example.com/spoiler.png\", description=\"Movie ending\", spoiler=True)\ngallery = create_media_gallery(image)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_media_item/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_media_item/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_media_item/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_media_item/index.md"
   }
  },
  {
   "name": "create_modal_row",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_modal_row",
   "aliases": [],
   "signature": "def create_modal_row(component: Any) -> Dict[str, Any]",
   "summary": {
    "fr": "Rangée de modale au format ancien (ActionRow + TextInput).",
    "en": "Modal row in the legacy format (ActionRow + TextInput)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_modal_row, create_text_input\n\n# Old modal format: each field in its own row\nrow = create_modal_row(create_text_input(\"username\", \"Username\"))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_modal_row/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_modal_row/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_modal_row/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_modal_row/index.md"
   }
  },
  {
   "name": "create_section",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_section",
   "aliases": [],
   "signature": "def create_section(*texts: Any, accessory: Any, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Section (type 9) : 1 à 3 textes avec un accessoire, bouton ou miniature.",
    "en": "Section (type 9): 1 to 3 texts with an accessory, button or thumbnail."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_button, create_section\n\nrow = create_section(\n    \"**Music**\",\n    \"Now playing: Lo-fi\",\n    accessory=create_button(\"pause\", \"Pause\", style=\"secondary\"),\n)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_section/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_section/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_section/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_section/index.md"
   }
  },
  {
   "name": "create_select_row",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_select_row",
   "aliases": [],
   "signature": "def create_select_row(select_menu: Any) -> Dict[str, Any]",
   "summary": {
    "fr": "Rangée contenant un menu de sélection.",
    "en": "Row holding a select menu."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_select_menu, create_select_row\n\nrow = create_select_row(create_select_menu(\"size\", options=[\"S\", \"M\", \"L\"]))\nawait ctx.respond(components=[row])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_select_row/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_select_row/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_select_row/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_select_row/index.md"
   }
  },
  {
   "name": "create_separator",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_separator",
   "aliases": [],
   "signature": "def create_separator(divider: bool = True, spacing: int | str = 1, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Séparateur (type 14) : trait et espacement vertical.",
    "en": "Separator (type 14): divider line and vertical spacing."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_separator\n\nline = create_separator()  # thin line\nspace = create_separator(divider=False, spacing=2)  # large gap without a line",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_separator/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_separator/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_separator/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_separator/index.md"
   }
  },
  {
   "name": "create_text_display_component",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_text_display_component",
   "aliases": [
    "create_text_display"
   ],
   "signature": "def create_text_display_component(content: str, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Bloc de texte Markdown (type 10), jusqu'à 4000 caractères.",
    "en": "Markdown text block (type 10), up to 4000 characters."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_text_display_component\n\ntext = create_text_display_component(\"# Title\\nThe text supports **Markdown**.\")\n# {\"type\": 10, \"content\": \"# Title\\nThe text supports **Markdown**.\"}",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_text_display_component/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_text_display_component/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_text_display_component/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_text_display_component/index.md"
   }
  },
  {
   "name": "create_thumbnail",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import create_thumbnail",
   "aliases": [],
   "signature": "def create_thumbnail(url: str | Dict[str, Any], description: str | None = None, spoiler: bool = False, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Miniature (type 11), à placer comme accessoire d'une section.",
    "en": "Thumbnail (type 11), used as the accessory of a section."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_section, create_thumbnail\n\nrow = create_section(\"## Profile\", accessory=create_thumbnail(ctx.user.display_avatar.url))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_thumbnail/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_thumbnail/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_thumbnail/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_thumbnail/index.md"
   }
  },
  {
   "name": "disable_all_components",
   "kind": "function",
   "section": "components.layout",
   "import": "from discord_interactions import disable_all_components",
   "aliases": [],
   "signature": "def disable_all_components(components: Sequence[Any]) -> List[Dict[str, Any]]",
   "summary": {
    "fr": "Copie des composants avec chaque bouton et chaque menu désactivé, à toute profondeur.",
    "en": "Copy of the components with every button and select disabled, at any depth."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import disable_all_components\n\n# After a vote: grey out every button of the message, without removing anything\n@router.on(\"vote\")\nasync def vote(interaction, data):\n    disabled = disable_all_components(interaction.message.components)\n    await update_message(interaction, components=disabled)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_all_components/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_all_components/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_all_components/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_all_components/index.md"
   }
  },
  {
   "name": "create_checkbox",
   "kind": "function",
   "section": "components.modal_fields",
   "import": "from discord_interactions import create_checkbox",
   "aliases": [],
   "signature": "def create_checkbox(custom_id: str, default: bool = False, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Case à cocher unique, oui ou non. Toujours facultative.",
    "en": "Single yes or no checkbox. Always optional."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_checkbox, create_label_component, create_modal\n\nrules = create_label_component(\"I accept the rules\", component=create_checkbox(\"rules\"))\nawait send_modal(interaction, create_modal(\"signup\", \"Sign up\", rules))\n\n@router.modal(\"signup\")\nasync def signup(interaction, values):\n    if not values[\"rules\"]:  # checkbox: True or False\n        return await respond_to_interaction(interaction, \"You must accept the rules.\", ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_checkbox/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_checkbox/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_checkbox/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_checkbox/index.md"
   }
  },
  {
   "name": "create_checkbox_group",
   "kind": "function",
   "section": "components.modal_fields",
   "import": "from discord_interactions import create_checkbox_group",
   "aliases": [],
   "signature": "def create_checkbox_group(custom_id: str, options: Sequence[Any], placeholder: str | None = None, min_values: int | None = 0, max_values: int | None = None, disabled: bool = False, required: bool = False, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Groupe de cases à cocher (1 à 10 options, plusieurs choix).",
    "en": "Checkbox group (1 to 10 options, multiple choices)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_checkbox_group, create_label_component, create_modal\n\ninterests = create_checkbox_group(\"interests\", [\"Games\", \"Music\", \"Code\", \"Drawing\"], max_values=3)\nawait send_modal(interaction, create_modal(\"profile\", \"Profile\", create_label_component(\"Your interests\", component=interests)))\n\n@router.modal(\"profile\")\nasync def profile(interaction, values):\n    chosen = values[\"interests\"]  # list, for example [\"Games\", \"Code\"]",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_checkbox_group/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_checkbox_group/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_checkbox_group/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_checkbox_group/index.md"
   }
  },
  {
   "name": "create_file_upload_component",
   "kind": "function",
   "section": "components.modal_fields",
   "import": "from discord_interactions import create_file_upload_component",
   "aliases": [],
   "signature": "def create_file_upload_component(custom_id: str, min_values: int | None = None, max_values: int | None = None, required: bool = True, file_types: Sequence[str] | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Envoi de fichiers dans une modale (0 à 10 fichiers), filtrable par type.",
    "en": "File upload inside a modal (0 to 10 files), filterable by type."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_file_upload_component, create_label_component, create_modal\n\nscreenshots = create_file_upload_component(\"screenshots\", max_values=3, file_types=[\"image\"])\nawait send_modal(interaction, create_modal(\"bug\", \"Report a bug\", create_label_component(\"Screenshots\", component=screenshots)))\n\n@router.modal(\"bug\")\nasync def bug(interaction, values):\n    files = values.attachments(\"screenshots\")  # discord.Attachment objects\n    await respond_to_interaction(interaction, f\"{len(files)} screenshot(s) received.\", ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_file_upload_component/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_file_upload_component/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_file_upload_component/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_file_upload_component/index.md"
   }
  },
  {
   "name": "create_label_component",
   "kind": "function",
   "section": "components.modal_fields",
   "import": "from discord_interactions import create_label_component",
   "aliases": [
    "create_label"
   ],
   "signature": "def create_label_component(label: str, description: str | None = None, component: Any | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Label (type 18) : titre et description autour d'un champ de modale. Format moderne recommandé par Discord.",
    "en": "Label (type 18): title and description around a modal field. The modern format recommended by Discord."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_label_component, create_modal, create_text_input\n\nfield = create_label_component(\n    \"Your age\",\n    description=\"You must be 13 or older\",  # small grey text under the title\n    component=create_text_input(\"age\", max_length=3),\n)\nmodal = create_modal(\"signup\", \"Sign up\", field)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_label_component/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_label_component/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_label_component/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_label_component/index.md"
   }
  },
  {
   "name": "create_modal",
   "kind": "function",
   "section": "components.modal_fields",
   "import": "from discord_interactions import create_modal",
   "aliases": [],
   "signature": "def create_modal(custom_id: str, title: str, *components: Any, strict_text_inputs: bool = False) -> Dict[str, Any]",
   "summary": {
    "fr": "Modale complète sous forme de dict. Les champs nus sont enveloppés dans un Label automatiquement.",
    "en": "Complete modal as a dict. Bare fields are wrapped in a Label automatically."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_modal, create_text_input, send_modal\n\n# Each field automatically gets a title (its label)\nmodal = create_modal(\n    \"contact\",\n    \"Contact us\",\n    create_text_input(\"email\", \"Email\", placeholder=\"you@example.com\"),\n    create_text_input(\"message\", \"Message\", style=2, max_length=1000),\n)\nawait send_modal(interaction, modal)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_modal/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_modal/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_modal/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_modal/index.md"
   }
  },
  {
   "name": "create_radio_group",
   "kind": "function",
   "section": "components.modal_fields",
   "import": "from discord_interactions import create_radio_group",
   "aliases": [],
   "signature": "def create_radio_group(custom_id: str, options: Sequence[Any], placeholder: str | None = None, disabled: bool = False, required: bool = True, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Groupe de boutons radio (2 à 10 options, un seul choix).",
    "en": "Radio group (2 to 10 options, single choice)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_label_component, create_modal, create_radio_group\n\nrating = create_radio_group(\"rating\", [\"1\", \"2\", \"3\", \"4\", \"5\"])\nawait send_modal(interaction, create_modal(\"review\", \"Your review\", create_label_component(\"Rating out of 5\", component=rating)))\n\n@router.modal(\"review\")\nasync def review(interaction, values):\n    rating = int(values[\"rating\"])  # a single choice: a string",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_radio_group/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_radio_group/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_radio_group/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_radio_group/index.md"
   }
  },
  {
   "name": "create_text_input",
   "kind": "function",
   "section": "components.modal_fields",
   "import": "from discord_interactions import create_text_input",
   "aliases": [],
   "signature": "def create_text_input(custom_id: str, label: str | None = None, style: str | int = 1, placeholder: str | None = None, min_length: int | None = None, max_length: int | None = None, required: bool = True, value: str | None = None, component_id: int | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Champ texte de modale, court ou paragraphe.",
    "en": "Modal text field, short or paragraph."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import TextInputStyle, create_label_component, create_text_input\n\nshort = create_text_input(\"username\", \"Username\", max_length=32)\nlong = create_text_input(\"bio\", \"Bio\", style=TextInputStyle.Paragraph, required=False)\nprefilled = create_text_input(\"city\", \"City\", value=\"Paris\")  # value already typed",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_text_input/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_text_input/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_text_input/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_text_input/index.md"
   }
  },
  {
   "name": "ButtonStyle",
   "kind": "constants",
   "section": "components.base",
   "import": "from discord_interactions import ButtonStyle",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Styles de bouton : `Primary` (1), `Secondary` (2), `Success` (3), `Danger` (4), `Link` (5) et `Premium` (6).",
    "en": "Button styles: `Primary` (1), `Secondary` (2), `Success` (3), `Danger` (4), `Link` (5) and `Premium` (6)."
   },
   "methods": [],
   "values": {
    "Primary": "1",
    "Secondary": "2",
    "Success": "3",
    "Danger": "4",
    "Link": "5",
    "Premium": "6"
   },
   "example": "from discord_interactions import ButtonStyle, create_button\n\n# Both forms are equivalent\ncreate_button(\"ok\", \"OK\", style=ButtonStyle.Success)\ncreate_button(\"ok\", \"OK\", style=\"success\")\n# Primary (blurple), Secondary (grey), Success (green), Danger (red), Link, Premium",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ButtonStyle/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ButtonStyle/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ButtonStyle/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ButtonStyle/index.md"
   }
  },
  {
   "name": "ComponentType",
   "kind": "constants",
   "section": "components.base",
   "import": "from discord_interactions import ComponentType",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Numéros de type de tous les composants Discord, de l'action row (1) à la case à cocher (23).",
    "en": "Type numbers of every Discord component, from action row (1) to checkbox (23)."
   },
   "methods": [],
   "values": {
    "ActionRow": "1",
    "Button": "2",
    "StringSelect": "3",
    "TextInput": "4",
    "UserSelect": "5",
    "RoleSelect": "6",
    "MentionableSelect": "7",
    "ChannelSelect": "8",
    "Section": "9",
    "TextDisplay": "10",
    "Thumbnail": "11",
    "MediaGallery": "12",
    "File": "13",
    "Separator": "14",
    "Container": "17",
    "Label": "18",
    "FileUpload": "19",
    "RadioGroup": "21",
    "CheckboxGroup": "22",
    "Checkbox": "23"
   },
   "example": "from discord_interactions import ComponentType\n\n# Find out which kind of component triggered the interaction\nif interaction.data[\"component_type\"] == ComponentType.Button:\n    ...\nelif interaction.data[\"component_type\"] == ComponentType.StringSelect:\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ComponentType/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ComponentType/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ComponentType/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ComponentType/index.md"
   }
  },
  {
   "name": "SeparatorSpacing",
   "kind": "constants",
   "section": "components.base",
   "import": "from discord_interactions import SeparatorSpacing",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Espacement d'un séparateur : `Small` (1) ou `Large` (2).",
    "en": "Separator spacing: `Small` (1) or `Large` (2)."
   },
   "methods": [],
   "values": {
    "Small": "1",
    "Large": "2"
   },
   "example": "from discord_interactions import SeparatorSpacing, separator\n\nsmall = separator(spacing=SeparatorSpacing.Small)\nlarge = separator(spacing=SeparatorSpacing.Large)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SeparatorSpacing/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SeparatorSpacing/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SeparatorSpacing/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SeparatorSpacing/index.md"
   }
  },
  {
   "name": "TextInputStyle",
   "kind": "constants",
   "section": "components.base",
   "import": "from discord_interactions import TextInputStyle",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Style d'un champ texte : `Short` (une ligne) ou `Paragraph` (plusieurs lignes).",
    "en": "Text input style: `Short` (single line) or `Paragraph` (multiple lines)."
   },
   "methods": [],
   "values": {
    "Short": "1",
    "Paragraph": "2"
   },
   "example": "from discord_interactions import TextInputStyle, create_text_input\n\ntitle = create_text_input(\"title\", \"Title\", style=TextInputStyle.Short)  # one line\nbody = create_text_input(\"body\", \"Text\", style=TextInputStyle.Paragraph)  # several lines",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/TextInputStyle/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/TextInputStyle/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/TextInputStyle/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/TextInputStyle/index.md"
   }
  },
  {
   "name": "create_component",
   "kind": "function",
   "section": "components.base",
   "import": "from discord_interactions import create_component",
   "aliases": [],
   "signature": "def create_component(component_type: int, **fields: Any) -> Dict[str, Any]",
   "summary": {
    "fr": "Composant brut : `{\"type\": component_type, **fields}`. Utile pour un type que le module ne couvre pas encore.",
    "en": "Raw component: `{\"type\": component_type, **fields}`. Handy for a type the module does not cover yet."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import ComponentType, create_component\n\n# For a component the module does not cover yet: pass the API fields as they are\ntext = create_component(ComponentType.TextDisplay, content=\"Built by hand\")\n# {\"type\": 10, \"content\": \"Built by hand\"}",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_component/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_component/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_component/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_component/index.md"
   }
  },
  {
   "name": "ModalBuilder",
   "kind": "class",
   "section": "modals.builder",
   "import": "from discord_interactions import ModalBuilder",
   "aliases": [],
   "signature": "class ModalBuilder(custom_id: str, title: str, data: Dict[str, Any] | None = None) -> None",
   "summary": {
    "fr": "Builder de modale moderne : chaque champ est placé dans un Label avec titre et description. 5 composants max.",
    "en": "Modern modal builder: every field sits in a Label with a title and description. 5 components max."
   },
   "methods": [
    "def add(component: Any, label: str | None = None, description: str | None = None) -> ModalBuilder",
    "def text(content: str) -> ModalBuilder",
    "def text_input(custom_id: str, label: str, description: str | None = None, *, style: str | int = 1, placeholder: str | None = None, min_length: int | None = None, max_length: int | None = None, required: bool = True, value: str | None = None) -> ModalBuilder",
    "def paragraph(custom_id: str, label: str, description: str | None = None, **kwargs: Any) -> ModalBuilder",
    "def select(custom_id: str, label: str, options: Sequence[Any], description: str | None = None, *, placeholder: str | None = None, min_values: int | None = None, max_values: int | None = None, required: bool | None = None) -> ModalBuilder",
    "def user_select(custom_id: str, label: str, description: str | None = None, *, placeholder: str | None = None, min_values: int | None = None, max_values: int | None = None, required: bool | None = None, default_values: Sequence[Any] | None = None) -> ModalBuilder",
    "def role_select(custom_id: str, label: str, description: str | None = None, *, placeholder: str | None = None, min_values: int | None = None, max_values: int | None = None, required: bool | None = None, default_values: Sequence[Any] | None = None) -> ModalBuilder",
    "def mentionable_select(custom_id: str, label: str, description: str | None = None, *, placeholder: str | None = None, min_values: int | None = None, max_values: int | None = None, required: bool | None = None, default_values: Sequence[Any] | None = None) -> ModalBuilder",
    "def channel_select(custom_id: str, label: str, description: str | None = None, *, placeholder: str | None = None, min_values: int | None = None, max_values: int | None = None, required: bool | None = None, default_values: Sequence[Any] | None = None, channel_types: Sequence[int] | None = None) -> ModalBuilder",
    "def radio(custom_id: str, label: str, options: Sequence[Any], description: str | None = None, *, required: bool = True) -> ModalBuilder",
    "def checkboxes(custom_id: str, label: str, options: Sequence[Any], description: str | None = None, *, min_values: int | None = 0, max_values: int | None = None, required: bool = False) -> ModalBuilder",
    "def checkbox(custom_id: str, label: str, description: str | None = None, *, default: bool = False) -> ModalBuilder",
    "def file_upload(custom_id: str, label: str, description: str | None = None, *, min_values: int | None = None, max_values: int | None = None, required: bool = True, file_types: Sequence[str] | None = None) -> ModalBuilder",
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ModalBuilder\n\nmodal = (\n    ModalBuilder(\"ticket\", \"Open a ticket\")\n    .text_input(\"subject\", \"Subject\", max_length=80)\n    .select(\"category\", \"Category\", [\"Billing\", \"Technical\", \"Other\"])\n    .paragraph(\"details\", \"Details\", \"Describe your problem\", required=False)\n    .file_upload(\"screenshots\", \"Screenshots\", file_types=[\"image\"], max_values=3, required=False)\n)\nawait ctx.send_modal(modal)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ModalBuilder/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ModalBuilder/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ModalBuilder/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ModalBuilder/index.md"
   }
  },
  {
   "name": "ModalSubmit",
   "kind": "class",
   "section": "modals.submit",
   "import": "from discord_interactions import ModalSubmit",
   "aliases": [],
   "signature": "class ModalSubmit(interaction: discord.Interaction) -> None",
   "summary": {
    "fr": "Valeurs soumises, indexées par `custom_id`. Texte et radio en `str`, case en `bool`, le reste en `list`.",
    "en": "Submitted values keyed by `custom_id`. Text and radio as `str`, checkbox as `bool`, everything else as `list`."
   },
   "methods": [
    "def get(custom_id: str, default: Any = None) -> Any",
    "def type_of(custom_id: str) -> int | None",
    "def to_dict() -> Dict[str, Any]",
    "def attachments(custom_id: str) -> List[discord.Attachment]",
    "def users(custom_id: str) -> List[discord.Member | discord.User]",
    "def roles(custom_id: str) -> List[discord.Role]",
    "def channels(custom_id: str) -> List[Any]",
    "def mentionables(custom_id: str) -> List[Any]"
   ],
   "values": null,
   "example": "@router.modal(\"ticket\")\nasync def ticket(interaction, values):\n    subject = values[\"subject\"]\n    category = values[\"category\"][0]\n    screenshots = values.attachments(\"screenshots\")\n    await respond_to_interaction(interaction, f\"Ticket “{subject}” ({category}), {len(screenshots)} screenshot(s).\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ModalSubmit/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ModalSubmit/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ModalSubmit/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ModalSubmit/index.md"
   }
  },
  {
   "name": "get_modal_values",
   "kind": "function",
   "section": "modals.submit",
   "import": "from discord_interactions import get_modal_values",
   "aliases": [],
   "signature": "def get_modal_values(interaction: discord.Interaction) -> Dict[str, Any]",
   "summary": {
    "fr": "Valeurs d'une modale sous forme de dict `{custom_id: valeur}`.",
    "en": "Modal values as a `{custom_id: value}` dict."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import get_modal_values\n\nvalues = get_modal_values(interaction)  # plain dict: {\"subject\": \"...\", \"details\": \"...\"}",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/get_modal_values/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/get_modal_values/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/get_modal_values/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/get_modal_values/index.md"
   }
  },
  {
   "name": "parse_modal",
   "kind": "function",
   "section": "modals.submit",
   "import": "from discord_interactions import parse_modal",
   "aliases": [],
   "signature": "def parse_modal(interaction: discord.Interaction) -> ModalSubmit",
   "summary": {
    "fr": "Lit les valeurs d'une modale soumise. Équivalent de `parse_values`.",
    "en": "Reads the values of a submitted modal. Same as `parse_values`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import parse_modal\n\n\n@client.event\nasync def on_interaction(interaction):\n    if interaction.type == discord.InteractionType.modal_submit:\n        values = parse_modal(interaction)\n        print(values.base_id, values.to_dict())",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_modal/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_modal/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_modal/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_modal/index.md"
   }
  },
  {
   "name": "parse_values",
   "kind": "function",
   "section": "modals.submit",
   "import": "from discord_interactions import parse_values",
   "aliases": [],
   "signature": "def parse_values(interaction: discord.Interaction) -> ModalSubmit",
   "summary": {
    "fr": "Lit les valeurs d'une modale ou d'un menu de sélection, entités et fichiers résolus.",
    "en": "Reads the values of a modal or a select menu, with entities and files resolved."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import parse_values\n\n@router.select(\"members\")\nasync def members(interaction):\n    chosen = parse_values(interaction).users(\"members\")\n    await respond_to_interaction(interaction, \", \".join(m.mention for m in chosen), ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_values/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_values/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_values/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_values/index.md"
   }
  },
  {
   "name": "defer_interaction",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import defer_interaction",
   "aliases": [],
   "signature": "async def defer_interaction(interaction: discord.Interaction, update: bool = False, ephemeral: bool = False, thinking: bool = True) -> None",
   "summary": {
    "fr": "Accuse réception pour répondre plus tard (15 minutes). Sur un composant, `update=True` n'affiche rien.",
    "en": "Acknowledges now to answer later (15 minutes). On a component, `update=True` shows nothing."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import defer_interaction, send_followup\n\nawait defer_interaction(interaction, ephemeral=True)\nresult = await long_computation()\nawait send_followup(interaction, f\"Result: {result}\", ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/defer_interaction/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/defer_interaction/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/defer_interaction/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/defer_interaction/index.md"
   }
  },
  {
   "name": "delete_original_response",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import delete_original_response",
   "aliases": [],
   "signature": "async def delete_original_response(interaction: discord.Interaction, message_id: str | int = '@original') -> None",
   "summary": {
    "fr": "Supprime la réponse d'origine, ou un followup avec `message_id`.",
    "en": "Deletes the original response, or a followup with `message_id`."
   },
   "methods": [],
   "values": null,
   "example": "await ctx.respond(\"This message disappears in 5 seconds.\")\nawait asyncio.sleep(5)\nawait delete_original_response(ctx.interaction)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/delete_original_response/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/delete_original_response/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/delete_original_response/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/delete_original_response/index.md"
   }
  },
  {
   "name": "edit_message",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import edit_message",
   "aliases": [],
   "signature": "async def edit_message(message: discord.Message | discord.InteractionMessage | Any, content: str | None = None, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Dict[str, Any] | Any | Sequence[Dict[str, Any] | Any] | None = None, allowed_mentions: Dict[str, Any] | discord.AllowedMentions | None = None, flags: int | None = None, files: Sequence[discord.File] | None = None, attachments: Sequence[Any] | None = None, **kwargs: Any) -> Any",
   "summary": {
    "fr": "Édite un message existant. Les pièces jointes sont conservées si `attachments` est omis.",
    "en": "Edits an existing message. Attachments are kept when `attachments` is omitted."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import container, edit_message, send_message\n\nmessage = await send_message(channel, components=[container(\"## Vote open\")])\nawait asyncio.sleep(3600)\nawait edit_message(message, components=[container(\"## Vote closed\")])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/edit_message/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/edit_message/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/edit_message/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/edit_message/index.md"
   }
  },
  {
   "name": "edit_original_response",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import edit_original_response",
   "aliases": [],
   "signature": "async def edit_original_response(interaction: discord.Interaction, content: str | None = None, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Dict[str, Any] | Any | Sequence[Dict[str, Any] | Any] | None = None, allowed_mentions: Dict[str, Any] | discord.AllowedMentions | None = None, flags: int | None = None, files: Sequence[discord.File] | None = None, attachments: Sequence[Any] | None = None, message_id: str | int = '@original') -> Dict[str, Any]",
   "summary": {
    "fr": "Édite la réponse d'origine, ou un followup avec `message_id`.",
    "en": "Edits the original response, or a followup with `message_id`."
   },
   "methods": [],
   "values": null,
   "example": "@slash.command(description=\"Download\")\nasync def download(ctx):\n    await ctx.respond(\"Download: 0%\")\n    for pct in (25, 50, 75, 100):\n        await asyncio.sleep(1)\n        await edit_original_response(ctx.interaction, content=f\"Download: {pct}%\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/edit_original_response/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/edit_original_response/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/edit_original_response/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/edit_original_response/index.md"
   }
  },
  {
   "name": "get_original_response",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import get_original_response",
   "aliases": [],
   "signature": "async def get_original_response(interaction: discord.Interaction) -> Dict[str, Any]",
   "summary": {
    "fr": "Récupère la réponse d'origine (dict API), par exemple pour obtenir son ID.",
    "en": "Fetches the original response (API dict), for example to get its ID."
   },
   "methods": [],
   "values": null,
   "example": "await ctx.respond(\"Poll started\")\nmessage = await get_original_response(ctx.interaction)  # raw API dict\nprint(message[\"id\"], message[\"channel_id\"])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/get_original_response/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/get_original_response/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/get_original_response/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/get_original_response/index.md"
   }
  },
  {
   "name": "respond",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import respond",
   "aliases": [],
   "signature": "async def respond(interaction: discord.Interaction, content: str | None = None, **kwargs: Any) -> Any",
   "summary": {
    "fr": "Répond à l'interaction, ou envoie un followup si elle a déjà reçu une réponse.",
    "en": "Responds to the interaction, or sends a followup if it was already answered."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import respond\n\n\n@router.on(\"steps\")\nasync def steps(interaction):\n    await respond(interaction, \"Step 1\")  # initial response\n    await respond(interaction, \"Step 2\")  # automatic followup, no 40060 error",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/respond/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/respond/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/respond/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/respond/index.md"
   }
  },
  {
   "name": "respond_to_interaction",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import respond_to_interaction",
   "aliases": [],
   "signature": "async def respond_to_interaction(interaction: discord.Interaction, content: str | None = None, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Dict[str, Any] | Any | Sequence[Dict[str, Any] | Any] | None = None, allowed_mentions: Dict[str, Any] | discord.AllowedMentions | None = None, ephemeral: bool = False, update: bool = False, flags: int | None = None, files: Sequence[discord.File] | None = None, with_response: bool = False, **kwargs: Any) -> Any",
   "summary": {
    "fr": "Réponse initiale à une interaction. Avec `update=True`, édite le message du composant cliqué.",
    "en": "Initial interaction response. With `update=True`, edits the message of the clicked component."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import respond_to_interaction\n\nawait respond_to_interaction(interaction, \"Saved\", ephemeral=True)\nawait respond_to_interaction(interaction, components=[new_card], update=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/respond_to_interaction/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/respond_to_interaction/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/respond_to_interaction/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/respond_to_interaction/index.md"
   }
  },
  {
   "name": "send_followup",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import send_followup",
   "aliases": [],
   "signature": "async def send_followup(interaction: discord.Interaction, content: str | None = None, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Dict[str, Any] | Any | Sequence[Dict[str, Any] | Any] | None = None, allowed_mentions: Dict[str, Any] | discord.AllowedMentions | None = None, ephemeral: bool = False, flags: int | None = None, files: Sequence[discord.File] | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Message de suivi après une réponse ou un report.",
    "en": "Followup message after a response or a defer."
   },
   "methods": [],
   "values": null,
   "example": "@router.on(\"report\")\nasync def report(interaction):\n    await defer_interaction(interaction, ephemeral=True)\n    text = await build_report()  # slow\n    await send_followup(interaction, text, ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/send_followup/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/send_followup/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/send_followup/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/send_followup/index.md"
   }
  },
  {
   "name": "send_message",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import send_message",
   "aliases": [],
   "signature": "async def send_message(destination: Any, content: str | None = None, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Dict[str, Any] | Any | Sequence[Dict[str, Any] | Any] | None = None, allowed_mentions: Dict[str, Any] | discord.AllowedMentions | None = None, tts: bool = False, files: Sequence[discord.File] | None = None, flags: int | None = None, file: discord.File | None = None, reply_to: Any | None = None, poll: Any | None = None, ephemeral: bool = False, **kwargs: Any) -> discord.Message | None",
   "summary": {
    "fr": "Envoie un message dans un salon, un thread, un contexte, à un membre en privé ou en réponse à une interaction.",
    "en": "Sends a message to a channel, a thread, a context, a member's DMs, or as an interaction response."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import container, send_message\n\nmessage = await send_message(channel, components=[container(\"## Announcement\")])\nawait send_message(channel, \"Reply to the previous message\", reply_to=message)\nawait send_message(member, \"Direct message\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/send_message/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/send_message/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/send_message/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/send_message/index.md"
   }
  },
  {
   "name": "send_modal",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import send_modal",
   "aliases": [],
   "signature": "async def send_modal(interaction: discord.Interaction, custom_id: str | Dict[str, Any] | Any, title: str | None = None, components: Sequence[Dict[str, Any] | Any] | None = None) -> None",
   "summary": {
    "fr": "Ouvre une modale. Accepte un `ModalBuilder`, un dict de `create_modal` ou les trois arguments séparés.",
    "en": "Opens a modal. Accepts a `ModalBuilder`, a `create_modal` dict or the three separate arguments."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import ModalBuilder, send_modal\n\nawait send_modal(interaction, ModalBuilder(\"feedback\", \"Your feedback\").paragraph(\"text\", \"Feedback\"))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/send_modal/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/send_modal/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/send_modal/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/send_modal/index.md"
   }
  },
  {
   "name": "update_message",
   "kind": "coroutine",
   "section": "messages.send",
   "import": "from discord_interactions import update_message",
   "aliases": [],
   "signature": "async def update_message(interaction: discord.Interaction, **kwargs: Any) -> Any",
   "summary": {
    "fr": "Édite le message du composant cliqué. Raccourci de `respond_to_interaction(..., update=True)`.",
    "en": "Edits the message of the clicked component. Shortcut for `respond_to_interaction(..., update=True)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import update_message\n\n\n@router.on(\"confirm\")\nasync def confirm(interaction):\n    await update_message(interaction, content=\"Order confirmed.\", components=[])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/update_message/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/update_message/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/update_message/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/update_message/index.md"
   }
  },
  {
   "name": "DisableAllHandle",
   "kind": "class",
   "section": "messages.ops",
   "import": "from discord_interactions import DisableAllHandle",
   "aliases": [],
   "signature": "class DisableAllHandle(message: Any, delay_ms: int = 0)",
   "summary": {
    "fr": "Minuteur de désactivation : `refresh()`, `cancel()`, `force_disable()`, `is_active()`.",
    "en": "Disable timer: `refresh()`, `cancel()`, `force_disable()`, `is_active()`."
   },
   "methods": [
    "def refresh(new_delay_ms: int) -> None",
    "def cancel() -> None",
    "async def force_disable() -> bool",
    "def is_active() -> bool"
   ],
   "values": null,
   "example": "handle = disable_all(message, delay_ms=30_000)\nhandle.refresh(30_000)  # push back\nhandle.cancel()  # cancel\nawait handle.force_disable()  # disable right now",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/DisableAllHandle/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/DisableAllHandle/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/DisableAllHandle/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/DisableAllHandle/index.md"
   }
  },
  {
   "name": "add_component",
   "kind": "function",
   "section": "messages.ops",
   "import": "from discord_interactions import add_component",
   "aliases": [],
   "signature": "def add_component(container: Any, components: Any | Sequence[Any], position: int | None = None) -> Any",
   "summary": {
    "fr": "Insère des composants dans un builder ou un dict de container.",
    "en": "Inserts components into a builder or a container dict."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import add_component, container, create_button\n\ncard = container(\"## Tasks\")\nadd_component(card, create_button(\"add\", \"Add a task\"))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/add_component/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/add_component/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/add_component/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/add_component/index.md"
   }
  },
  {
   "name": "disable_all",
   "kind": "function",
   "section": "messages.ops",
   "import": "from discord_interactions import disable_all",
   "aliases": [],
   "signature": "def disable_all(message: Any, delay_ms: int = 0) -> DisableAllHandle",
   "summary": {
    "fr": "Désactive tous les composants d'un message, tout de suite ou après un délai.",
    "en": "Disables every component of a message, now or after a delay."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import disable_all\n\ntimer = disable_all(message, delay_ms=30_000)\ntimer.refresh(30_000)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_all/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_all/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_all/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_all/index.md"
   }
  },
  {
   "name": "disable_all_by_message_id",
   "kind": "function",
   "section": "messages.ops",
   "import": "from discord_interactions import disable_all_by_message_id",
   "aliases": [],
   "signature": "def disable_all_by_message_id(channel: Any, message_id: int | str, delay_ms: int = 0) -> DisableAllHandle",
   "summary": {
    "fr": "Comme `disable_all`, à partir d'un salon et d'un ID de message.",
    "en": "Like `disable_all`, from a channel and a message ID."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import disable_all_by_message_id\n\ntimer = disable_all_by_message_id(channel, message_id, delay_ms=60_000)\n\n\n@router.on(\"activity\")\nasync def activity(interaction):\n    timer.refresh(60_000)  # every click pushes the expiry back",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_all_by_message_id/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_all_by_message_id/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_all_by_message_id/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_all_by_message_id/index.md"
   }
  },
  {
   "name": "disable_buttons",
   "kind": "function",
   "section": "messages.ops",
   "import": "from discord_interactions import disable_buttons",
   "aliases": [],
   "signature": "def disable_buttons(components: Dict[str, Any] | Sequence[Dict[str, Any]]) -> List[Dict[str, Any]]",
   "summary": {
    "fr": "Copie des composants avec boutons et menus désactivés ; les boutons Lien restent actifs.",
    "en": "Copy of the components with buttons and selects disabled; Link buttons stay active."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import disable_buttons\n\nrows = [create_action_row(create_button(\"yes\", \"Yes\"), create_button(\"no\", \"No\"))]\nawait ctx.respond(\"Choose\", components=rows)\n\ndisabled = disable_buttons(rows)  # copy with every button disabled\nawait edit_original_response(ctx.interaction, components=disabled)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_buttons/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_buttons/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/disable_buttons/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/disable_buttons/index.md"
   }
  },
  {
   "name": "remove_component",
   "kind": "coroutine",
   "section": "messages.ops",
   "import": "from discord_interactions import remove_component",
   "aliases": [],
   "signature": "async def remove_component(message: Any, selector: str | Callable[[Dict[str, Any]], bool], remove_empty_rows: bool = True) -> bool",
   "summary": {
    "fr": "Retire les composants ciblés ; les rangées vides disparaissent aussi.",
    "en": "Removes the matching components; rows left empty disappear too."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import remove_component\n\n@router.on(\"cancel\")\nasync def cancel(interaction):\n    await defer_interaction(interaction, update=True)\n    await remove_component(interaction.message, \"cancel\")  # removes the button, and the row if empty",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/remove_component/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/remove_component/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/remove_component/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/remove_component/index.md"
   }
  },
  {
   "name": "row_update",
   "kind": "coroutine",
   "section": "messages.ops",
   "import": "from discord_interactions import row_update",
   "aliases": [],
   "signature": "async def row_update(message: Any, row_selector: str | int | Callable[[Dict[str, Any], int], bool], updater: Callable[[Dict[str, Any]], Dict[str, Any] | None] | Callable[[Dict[str, Any]], Awaitable[Dict[str, Any] | None]]) -> bool",
   "summary": {
    "fr": "Transforme chaque composant d'une ou plusieurs rangées avec une fonction.",
    "en": "Transforms every component of one or more rows with a function."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import row_update\n\ndef turn_off(button):\n    button[\"style\"] = 2\n    return button\n\nawait row_update(interaction.message, 0, turn_off)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/row_update/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/row_update/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/row_update/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/row_update/index.md"
   }
  },
  {
   "name": "row_update_one",
   "kind": "coroutine",
   "section": "messages.ops",
   "import": "from discord_interactions import row_update_one",
   "aliases": [],
   "signature": "async def row_update_one(message: Any, row_selector: str | int | Callable[[Dict[str, Any], int], bool], updater: Callable[[Dict[str, Any]], Dict[str, Any] | None] | Callable[[Dict[str, Any]], Awaitable[Dict[str, Any] | None]]) -> bool",
   "summary": {
    "fr": "Comme `row_update`, mais seulement si exactement une rangée correspond.",
    "en": "Like `row_update`, but only when exactly one row matches."
   },
   "methods": [],
   "values": null,
   "example": "# Turns every button of the row containing \"yes\" grey\nawait row_update_one(interaction.message, \"yes\", lambda button: {**button, \"style\": 2})",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/row_update_one/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/row_update_one/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/row_update_one/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/row_update_one/index.md"
   }
  },
  {
   "name": "update_component",
   "kind": "coroutine",
   "section": "messages.ops",
   "import": "from discord_interactions import update_component",
   "aliases": [],
   "signature": "async def update_component(message: Any, selector: str | Callable[[Dict[str, Any]], bool], updates: Dict[str, Any]) -> bool",
   "summary": {
    "fr": "Recharge le message puis modifie chaque composant ciblé.",
    "en": "Reloads the message, then updates every matching component."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import defer_interaction, update_component\n\nawait defer_interaction(interaction, update=True)\nawait update_component(interaction.message, \"confirm\", {\"disabled\": True, \"label\": \"Confirmed\"})",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/update_component/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/update_component/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/update_component/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/update_component/index.md"
   }
  },
  {
   "name": "update_component_one",
   "kind": "coroutine",
   "section": "messages.ops",
   "import": "from discord_interactions import update_component_one",
   "aliases": [],
   "signature": "async def update_component_one(message: Any, selector: str | Callable[[Dict[str, Any]], bool], updates: Dict[str, Any]) -> bool",
   "summary": {
    "fr": "Comme `update_component`, mais seulement si exactement un composant correspond.",
    "en": "Like `update_component`, but only when exactly one component matches."
   },
   "methods": [],
   "values": null,
   "example": "await update_component_one(interaction.message, \"confirm\", {\"label\": \"Confirmed\", \"disabled\": True})",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/update_component_one/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/update_component_one/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/update_component_one/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/update_component_one/index.md"
   }
  },
  {
   "name": "MessageFlags",
   "kind": "constants",
   "section": "messages.payload",
   "import": "from discord_interactions import MessageFlags",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Drapeaux de message : `EPHEMERAL`, `IS_COMPONENTS_V2`, `SUPPRESS_EMBEDS`, `SUPPRESS_NOTIFICATIONS` et les autres drapeaux de l'API.",
    "en": "Message flags: `EPHEMERAL`, `IS_COMPONENTS_V2`, `SUPPRESS_EMBEDS`, `SUPPRESS_NOTIFICATIONS` and the other API flags."
   },
   "methods": [],
   "values": {
    "CROSSPOSTED": "1",
    "SUPPRESS_EMBEDS": "4",
    "EPHEMERAL": "64",
    "LOADING": "128",
    "SUPPRESS_NOTIFICATIONS": "4096",
    "IS_VOICE_MESSAGE": "8192",
    "IS_COMPONENTS_V2": "32768"
   },
   "example": "from discord_interactions import MessageFlags, send_message\n\nawait send_message(channel, \"Silent update\", flags=MessageFlags.SUPPRESS_NOTIFICATIONS)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MessageFlags/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MessageFlags/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MessageFlags/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MessageFlags/index.md"
   }
  },
  {
   "name": "build_message_payload",
   "kind": "function",
   "section": "messages.payload",
   "import": "from discord_interactions import build_message_payload",
   "aliases": [],
   "signature": "def build_message_payload(content: str | None = None, embed: discord.Embed | None = None, embeds: Sequence[discord.Embed] | None = None, components: Dict[str, Any] | Any | Sequence[Dict[str, Any] | Any] | None = None, allowed_mentions: Dict[str, Any] | discord.AllowedMentions | None = None, flags: int | None = None, tts: bool = False, ephemeral: bool = False, attachments: Sequence[Any] | None = None, files: Sequence[discord.File] | None = None, poll: Any | None = None, message_reference: Any | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Construit le payload d'un message pour n'importe quel endpoint. Ajoute `IS_COMPONENTS_V2` et convertit `content` en texte si besoin.",
    "en": "Builds a message payload for any endpoint. Adds `IS_COMPONENTS_V2` and turns `content` into a text block when needed."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import build_message_payload, container\n\npayload = build_message_payload(\"Hello\", components=[container(\"Card\")], ephemeral=True)\n# {\"components\": [{\"type\": 10, \"content\": \"Hello\"}, {...}], \"flags\": 32832}",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/build_message_payload/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/build_message_payload/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/build_message_payload/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/build_message_payload/index.md"
   }
  },
  {
   "name": "parse_allowed_mentions",
   "kind": "function",
   "section": "messages.payload",
   "import": "from discord_interactions import parse_allowed_mentions",
   "aliases": [],
   "signature": "def parse_allowed_mentions(allowed_mentions: Dict[str, Any] | discord.AllowedMentions | None) -> Dict[str, Any] | None",
   "summary": {
    "fr": "Normalise les mentions autorisées : objet discord.py, payload API, style discord.js ou interrupteurs booléens.",
    "en": "Normalizes allowed mentions: discord.py object, API payload, discord.js style or boolean switches."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import parse_allowed_mentions\n\nparse_allowed_mentions({\"parse\": [\"users\"]})\n# {\"parse\": [\"users\"]}\nparse_allowed_mentions({\"users\": False, \"roles\": False, \"everyone\": False})\n# {\"parse\": []}: no mention notifies anyone",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_allowed_mentions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_allowed_mentions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_allowed_mentions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_allowed_mentions/index.md"
   }
  },
  {
   "name": "InteractionRouter",
   "kind": "class",
   "section": "helpers.router",
   "import": "from discord_interactions import InteractionRouter",
   "aliases": [
    "ButtonRouter"
   ],
   "signature": "class InteractionRouter() -> None",
   "summary": {
    "fr": "Route boutons, menus et modales vers des handlers selon le `base_id` de leur `custom_id`.",
    "en": "Routes buttons, select menus and modals to handlers by the `base_id` of their `custom_id`."
   },
   "methods": [
    "def on(base_id: str) -> Callable[[Callable[..., Awaitable[Any]]], Callable[..., Awaitable[Any]]]",
    "def modal(base_id: str) -> Callable[[Callable[..., Awaitable[Any]]], Callable[..., Awaitable[Any]]]",
    "def fallback(func: Callable[..., Awaitable[Any]]) -> Callable[..., Awaitable[Any]]",
    "async def handle(interaction: discord.Interaction) -> bool"
   ],
   "values": null,
   "example": "from discord_interactions import InteractionRouter, update_message\n\nrouter = InteractionRouter()\n\n@router.on(\"vote\")\nasync def vote(interaction, data):\n    await update_message(interaction, content=f\"Vote recorded: {data['choice']}\")\n\n@router.modal(\"profile\")\nasync def profile(interaction, values):\n    ...\n\n@client.event\nasync def on_interaction(interaction):\n    await router.handle(interaction)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/InteractionRouter/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/InteractionRouter/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/InteractionRouter/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/InteractionRouter/index.md"
   }
  },
  {
   "name": "build_signed_custom_id",
   "kind": "function",
   "section": "helpers.signed",
   "import": "from discord_interactions import build_signed_custom_id",
   "aliases": [],
   "signature": "def build_signed_custom_id(base_id: str, data: Dict[str, Any] | None, secret: str, ttl_seconds: int | None = None, max_length: int = 100) -> str",
   "summary": {
    "fr": "`custom_id` signé par HMAC-SHA256, avec expiration optionnelle. Impossible à falsifier sans le secret.",
    "en": "`custom_id` signed with HMAC-SHA256, with optional expiry. Cannot be forged without the secret."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import build_signed_custom_id, parse_signed_custom_id\n\ncustom_id = build_signed_custom_id(\"withdraw\", {\"amount\": 500}, secret=SECRET, ttl_seconds=120)\nbase_id, data, valid, reason = parse_signed_custom_id(custom_id, SECRET)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/build_signed_custom_id/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/build_signed_custom_id/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/build_signed_custom_id/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/build_signed_custom_id/index.md"
   }
  },
  {
   "name": "create_auto_rows",
   "kind": "function",
   "section": "helpers.signed",
   "import": "from discord_interactions import create_auto_rows",
   "aliases": [],
   "signature": "def create_auto_rows(components: Sequence[Dict[str, Any]], max_buttons_per_row: int = 5) -> List[Dict[str, Any]]",
   "summary": {
    "fr": "Range automatiquement boutons et menus dans des rangées valides.",
    "en": "Places buttons and select menus into valid rows automatically."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_auto_rows, create_button\n\nbuttons = [create_button(\"letter\", c, data={\"c\": c}) for c in \"ABCDEFGHIJKL\"]\nawait ctx.respond(\"Pick a letter\", components=create_auto_rows(buttons))  # 5 + 5 + 2",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_auto_rows/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_auto_rows/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_auto_rows/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_auto_rows/index.md"
   }
  },
  {
   "name": "create_signed_button",
   "kind": "function",
   "section": "helpers.signed",
   "import": "from discord_interactions import create_signed_button",
   "aliases": [],
   "signature": "def create_signed_button(base_id: str, secret: str, data: Dict[str, Any] | None = None, ttl_seconds: int | None = None, label: str = '', style: int | str = 'Primary', emoji: str | Dict[str, Any] | None = None, disabled: bool = False, max_custom_id_length: int = 100) -> Dict[str, Any]",
   "summary": {
    "fr": "Bouton dont le `custom_id` est signé.",
    "en": "Button with a signed `custom_id`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import create_action_row, create_signed_button\n\nbutton = create_signed_button(\n    \"withdraw\", SECRET, data={\"amount\": 500}, ttl_seconds=120, label=\"Withdraw 500\", style=\"danger\"\n)\nawait ctx.respond(components=[create_action_row(button)], ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_signed_button/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_signed_button/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_signed_button/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_signed_button/index.md"
   }
  },
  {
   "name": "parse_signed_custom_id",
   "kind": "function",
   "section": "helpers.signed",
   "import": "from discord_interactions import parse_signed_custom_id",
   "aliases": [],
   "signature": "def parse_signed_custom_id(custom_id: str, secret: str, enforce_expiry: bool = True) -> Tuple[str, Dict[str, Any], bool, str]",
   "summary": {
    "fr": "Vérifie un `custom_id` signé. Renvoie `(base_id, données, valide, raison)`.",
    "en": "Verifies a signed `custom_id`. Returns `(base_id, data, valid, reason)`."
   },
   "methods": [],
   "values": null,
   "example": "@router.on(\"withdraw\")\nasync def withdraw(interaction):\n    _, data, valid, reason = parse_signed_custom_id(interaction.data[\"custom_id\"], SECRET)\n    if not valid:\n        await respond_to_interaction(interaction, f\"Button rejected ({reason}).\", ephemeral=True)\n        return\n    await debit(interaction.user.id, data[\"amount\"])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_signed_custom_id/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_signed_custom_id/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_signed_custom_id/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_signed_custom_id/index.md"
   }
  },
  {
   "name": "respond_or_followup",
   "kind": "coroutine",
   "section": "helpers.signed",
   "import": "from discord_interactions import respond_or_followup",
   "aliases": [],
   "signature": "async def respond_or_followup(interaction: discord.Interaction, *, content: str | None = None, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Iterable[Any] | None = None, ephemeral: bool = False, flags: int | None = None, **kwargs: Any) -> Any",
   "summary": {
    "fr": "Réponse initiale si possible, sinon followup.",
    "en": "Initial response when possible, otherwise a followup."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import respond_or_followup\n\nawait respond_or_followup(interaction, content=\"Done.\", ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/respond_or_followup/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/respond_or_followup/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/respond_or_followup/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/respond_or_followup/index.md"
   }
  },
  {
   "name": "quick_button",
   "kind": "function",
   "section": "helpers.quick",
   "import": "from discord_interactions import quick_button",
   "aliases": [],
   "signature": "def quick_button(base_id: str, label: str, *, style: str | int = 'Primary', emoji: str | Dict[str, Any] | None = None, data: Dict[str, Any] | None = None, disabled: bool = False, url: str | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Bouton en une ligne.",
    "en": "One-line button."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import quick_button, quick_row\n\nawait ctx.respond(components=[quick_row(quick_button(\"yes\", \"Yes\", style=\"Success\"), quick_button(\"no\", \"No\"))])",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_button/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_button/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_button/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_button/index.md"
   }
  },
  {
   "name": "quick_container",
   "kind": "function",
   "section": "helpers.quick",
   "import": "from discord_interactions import quick_container",
   "aliases": [],
   "signature": "def quick_container(*, title: str | None = None, lines: Iterable[str] | None = None, color: int | None = 5793266, button: Dict[str, Any] | None = None, button_text: str = 'Action', buttons: Sequence[Dict[str, Any]] | None = None, separator_between_lines: bool = False, thumbnail: str | None = None) -> Dict[str, Any]",
   "summary": {
    "fr": "Container complet en un appel : titre, lignes, miniature, bouton de section ou rangée de boutons.",
    "en": "Complete container in one call: title, lines, thumbnail, section button or row of buttons."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import quick_button, quick_container\n\ncard = quick_container(\n    title=\"Status\",\n    lines=[\"**API** operational\", \"**Database** operational\"],\n    buttons=[quick_button(\"refresh\", \"Refresh\")],\n)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_container/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_container/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_container/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_container/index.md"
   }
  },
  {
   "name": "quick_row",
   "kind": "function",
   "section": "helpers.quick",
   "import": "from discord_interactions import quick_row",
   "aliases": [],
   "signature": "def quick_row(*buttons: Dict[str, Any] | Sequence[Dict[str, Any]]) -> Dict[str, Any]",
   "summary": {
    "fr": "Rangée de boutons : `quick_row(b1, b2)` ou `quick_row([b1, b2])`.",
    "en": "Row of buttons: `quick_row(b1, b2)` or `quick_row([b1, b2])`."
   },
   "methods": [],
   "values": null,
   "example": "row = quick_row(quick_button(\"a\", \"A\"), quick_button(\"b\", \"B\"), quick_button(\"c\", \"C\"))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_row/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_row/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_row/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_row/index.md"
   }
  },
  {
   "name": "quick_send_container",
   "kind": "coroutine",
   "section": "helpers.quick",
   "import": "from discord_interactions import quick_send_container",
   "aliases": [],
   "signature": "async def quick_send_container(destination: Any, *, title: str | None = None, lines: Iterable[str] | None = None, color: int | None = 5793266, button: Dict[str, Any] | None = None, buttons: Sequence[Dict[str, Any]] | None = None, separator_between_lines: bool = False, content: str | None = None, **kwargs: Any)",
   "summary": {
    "fr": "Envoie directement un `quick_container`.",
    "en": "Sends a `quick_container` directly."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import quick_button, quick_send_container\n\nawait quick_send_container(\n    channel,\n    title=\"Maintenance tonight\",\n    lines=[\"From 10 pm to 11 pm\", \"The bot will be offline\"],\n    button=quick_button(\"remind\", \"Remind me\"),\n)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_send_container/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_send_container/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/quick_send_container/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/quick_send_container/index.md"
   }
  },
  {
   "name": "build_custom_id",
   "kind": "function",
   "section": "core.custom_id",
   "import": "from discord_interactions import build_custom_id",
   "aliases": [],
   "signature": "def build_custom_id(base_id: str, data: Dict[str, Any] | None = None, max_length: int = 100) -> str",
   "summary": {
    "fr": "`base_id:données` en JSON compact et base64 url-safe. Lève une erreur au-delà de 100 caractères.",
    "en": "`base_id:data` as compact JSON in url-safe base64. Raises past 100 characters."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import build_custom_id, parse_custom_id\n\ncustom_id = build_custom_id(\"page\", {\"p\": 3})\nbase_id, data = parse_custom_id(custom_id)  # (\"page\", {\"p\": 3})",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/build_custom_id/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/build_custom_id/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/build_custom_id/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/build_custom_id/index.md"
   }
  },
  {
   "name": "decode_data",
   "kind": "function",
   "section": "core.custom_id",
   "import": "from discord_interactions import decode_data",
   "aliases": [],
   "signature": "def decode_data(encoded: str) -> Dict[str, Any]",
   "summary": {
    "fr": "Décode des données de `custom_id` ; renvoie `{}` si elles sont invalides.",
    "en": "Decodes `custom_id` data; returns `{}` when invalid."
   },
   "methods": [],
   "values": null,
   "example": "decode_data(\"eyJwIjozfQ\")  # {\"p\": 3}\ndecode_data(\"not base64\")  # {}: never raises",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/decode_data/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/decode_data/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/decode_data/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/decode_data/index.md"
   }
  },
  {
   "name": "encode_data",
   "kind": "function",
   "section": "core.custom_id",
   "import": "from discord_interactions import encode_data",
   "aliases": [],
   "signature": "def encode_data(data: Dict[str, Any]) -> str",
   "summary": {
    "fr": "Encode un dict en JSON compact et base64 url-safe sans padding.",
    "en": "Encodes a dict as compact JSON in url-safe base64 without padding."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import decode_data, encode_data\n\ntext = encode_data({\"p\": 3})  # \"eyJwIjozfQ\"\ndecode_data(text)  # {\"p\": 3}",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/encode_data/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/encode_data/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/encode_data/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/encode_data/index.md"
   }
  },
  {
   "name": "get_base_custom_id",
   "kind": "function",
   "section": "core.custom_id",
   "import": "from discord_interactions import get_base_custom_id",
   "aliases": [],
   "signature": "def get_base_custom_id(custom_id: str) -> str",
   "summary": {
    "fr": "Partie avant le premier `:` d'un `custom_id`.",
    "en": "Part of a `custom_id` before the first `:`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import get_base_custom_id\n\nget_base_custom_id(\"buy:eyJhIjo0Mn0\")  # \"buy\"",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/get_base_custom_id/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/get_base_custom_id/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/get_base_custom_id/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/get_base_custom_id/index.md"
   }
  },
  {
   "name": "parse_custom_id",
   "kind": "function",
   "section": "core.custom_id",
   "import": "from discord_interactions import parse_custom_id",
   "aliases": [],
   "signature": "def parse_custom_id(custom_id: str) -> Tuple[str, Dict[str, Any]]",
   "summary": {
    "fr": "Sépare un `custom_id` en `(base_id, données)`. Lit aussi l'ancien format.",
    "en": "Splits a `custom_id` into `(base_id, data)`. Also reads the legacy format."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions import parse_custom_id\n\nbase_id, data = parse_custom_id(interaction.data[\"custom_id\"])\n# \"page:eyJwIjozfQ\" -> (\"page\", {\"p\": 3})",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_custom_id/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_custom_id/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/parse_custom_id/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/parse_custom_id/index.md"
   }
  },
  {
   "name": "CallbackType",
   "kind": "constants",
   "section": "core.http",
   "import": "from discord_interactions import CallbackType",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Types de réponse à une interaction : message (4), report (5, 6), mise à jour (7), autocomplétion (8), modale (9).",
    "en": "Interaction response types: message (4), deferred (5, 6), update (7), autocomplete (8), modal (9)."
   },
   "methods": [],
   "values": {
    "PONG": "1",
    "CHANNEL_MESSAGE": "4",
    "DEFERRED_CHANNEL_MESSAGE": "5",
    "DEFERRED_UPDATE_MESSAGE": "6",
    "UPDATE_MESSAGE": "7",
    "AUTOCOMPLETE_RESULT": "8",
    "MODAL": "9",
    "LAUNCH_ACTIVITY": "12"
   },
   "example": "from discord_interactions import CallbackType\n\n# API response types, for an HTTP call made by hand\npayload = {\"type\": CallbackType.CHANNEL_MESSAGE, \"data\": {\"content\": \"Hello\"}}\n# CHANNEL_MESSAGE (4), DEFERRED_CHANNEL_MESSAGE (5), UPDATE_MESSAGE (7), MODAL (9)...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CallbackType/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CallbackType/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CallbackType/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CallbackType/index.md"
   }
  },
  {
   "name": "SlashCommand",
   "kind": "class",
   "section": "slash.core",
   "import": "from discord_interactions import SlashCommand",
   "aliases": [],
   "signature": "class SlashCommand(name: str, description: str, callback: Callable[..., Awaitable[Any]], options: List[OptionBase] = <factory>, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, permissions: PermissionConfig = <factory>, cooldowns: List[CooldownBucket] = <factory>, guild_ids: Set[int] | None = None, parent: str | None = None, group: str | None = None, auto_defer: bool = False, defer_ephemeral: bool = False, ephemeral_by_default: bool = False, _enabled: bool = True) -> None",
   "summary": {
    "fr": "Commande déclarée. Créée par `@slash.command()`.",
    "en": "A declared command. Created by `@slash.command()`."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]",
    "def to_subcommand_dict() -> Dict[str, Any]",
    "def prepare(values: Dict[str, Any]) -> Dict[str, Any]",
    "async def invoke(ctx: SlashContext, **kwargs: Any) -> Any"
   ],
   "values": null,
   "example": "# You never create SlashCommand yourself: @slash.command builds it and keeps it\n@slash.command(description=\"Latency\")\nasync def ping(ctx):\n    await ctx.respond(\"Pong\")\n\ncommand = slash.get_command(\"ping\")\nprint(command.name, command.description)\nprint(command.to_dict())  # what is sent to Discord",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashCommand/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashCommand/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashCommand/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashCommand/index.md"
   }
  },
  {
   "name": "SlashCommandManager",
   "kind": "class",
   "section": "slash.core",
   "import": "from discord_interactions import SlashCommandManager",
   "aliases": [
    "SlashManager"
   ],
   "signature": "class SlashCommandManager(client: discord.Client, *, owner_ids: Set[int] | None = None, auto_sync: bool = True, sync_on_ready: bool = True, default_guilds: List[int] | None = None) -> None",
   "summary": {
    "fr": "Point d'entrée des commandes slash : déclaration, exécution, autocomplétion et synchronisation. Alias : `SlashManager`.",
    "en": "Entry point for slash commands: declaration, execution, autocomplete and sync. Alias: `SlashManager`."
   },
   "methods": [
    "def find_command(data: Dict[str, Any]) -> Tuple[SlashCommand | None, List[Dict[str, Any]]]",
    "def command(name: str | None = None, description: str = 'No description', *, options: List[OptionBase] | None = None, guild_ids: List[int] | None = None, auto_defer: bool = False, defer_ephemeral: bool = False, ephemeral: bool = False, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, **kwargs: Any) -> Callable[[~T], ~T]",
    "def group(name: str, description: str = 'No description', *, guild_ids: List[int] | None = None, **kwargs: Any) -> SlashGroup",
    "def add_middleware(middleware: Middleware) -> None",
    "def remove_middleware(name: str) -> bool",
    "def middleware(name: str | None = None, *, priority: int = 100, commands: List[str] | None = None, exclude: List[str] | None = None) -> Callable",
    "def on_error(func: Callable) -> Callable",
    "def autocomplete(command_name: str, option_name: str) -> Callable",
    "def build_payload() -> List[Dict[str, Any]]",
    "async def sync(guilds: List[int] | None = None) -> Dict[int | None, Any]",
    "def get_command(name: str) -> SlashCommand | None",
    "def get_all_commands() -> List[SlashCommand]",
    "def get_group(name: str) -> SlashGroup | None",
    "def remove_command(name: str) -> bool"
   ],
   "values": null,
   "example": "import discord\nfrom discord_interactions.slash import SlashManager\n\nclient = discord.Client(intents=discord.Intents.default())\nslash = SlashManager(client, default_guilds=[123456789012345678])\n\n@slash.command(description=\"Bot latency\")\nasync def ping(ctx):\n    await ctx.respond(f\"Pong! {ctx.bot.latency * 1000:.0f} ms\")\n\nclient.run(TOKEN)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashCommandManager/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashCommandManager/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashCommandManager/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashCommandManager/index.md"
   }
  },
  {
   "name": "SlashGroup",
   "kind": "class",
   "section": "slash.core",
   "import": "from discord_interactions import SlashGroup",
   "aliases": [],
   "signature": "class SlashGroup(name: str, description: str, commands: Dict[str, SlashCommand] = <factory>, subgroups: Dict[str, SlashGroup] = <factory>, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, guild_ids: Set[int] | None = None, permissions: PermissionConfig = <factory>) -> None",
   "summary": {
    "fr": "Groupe de commandes : `/groupe sous-commande` ou `/groupe sous-groupe sous-commande`.",
    "en": "Command group: `/group subcommand` or `/group subgroup subcommand`."
   },
   "methods": [
    "def command(name: str | None = None, description: str = 'No description', *, options: List[OptionBase] | None = None, **kwargs: Any) -> Callable[[~T], ~T]",
    "def subgroup(name: str, description: str = 'No description', **kwargs: Any) -> SlashGroup",
    "def find(raw_options: List[Dict[str, Any]]) -> Tuple[SlashCommand | None, List[Dict[str, Any]]]",
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "config = slash.group(\"config\", \"Configuration\")\nchannels = config.subgroup(\"channels\", \"Bot channels\")\n\n@channels.command(description=\"Log channel\")\n@option(Channel(\"channel\", \"Channel\"))\nasync def logs(ctx, channel):\n    await ctx.respond(f\"Logs: {channel.mention}\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashGroup/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashGroup/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashGroup/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashGroup/index.md"
   }
  },
  {
   "name": "option",
   "kind": "function",
   "section": "slash.core",
   "import": "from discord_interactions import option",
   "aliases": [],
   "signature": "def option(opt: OptionBase) -> Callable[[~T], ~T]",
   "summary": {
    "fr": "Décorateur : ajoute une option à la commande. L'ordre d'écriture est conservé.",
    "en": "Decorator: adds an option to the command. Writing order is kept."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Integer, String, option\n\n@slash.command(description=\"Repeat\")\n@option(String(\"text\", \"Text\", max_length=200))\n@option(Integer(\"times\", \"Repetitions\", required=False, default=1, min_value=1, max_value=5))\nasync def repeat(ctx, text, times):\n    await ctx.respond(\"\\n\".join([text] * times))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/option/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/option/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/option/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/option/index.md"
   }
  },
  {
   "name": "options",
   "kind": "function",
   "section": "slash.core",
   "import": "from discord_interactions import options",
   "aliases": [],
   "signature": "def options(*opts: OptionBase) -> Callable[[~T], ~T]",
   "summary": {
    "fr": "Décorateur : ajoute plusieurs options d'un coup.",
    "en": "Decorator: adds several options at once."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Integer, String, options\n\n\n@slash.command(description=\"Create a reminder\")\n@options(\n    String(\"text\", \"What?\"),\n    Integer(\"minutes\", \"In how many minutes?\", min_value=1),\n)\nasync def remind(ctx, text, minutes): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/options/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/options/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/options/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/options/index.md"
   }
  },
  {
   "name": "SlashContext",
   "kind": "class",
   "section": "slash.context",
   "import": "from discord_interactions import SlashContext",
   "aliases": [],
   "signature": "class SlashContext(interaction: discord.Interaction, command: SlashCommand | None = None, options: Dict[str, Any] | None = None) -> None",
   "summary": {
    "fr": "Contexte d'une commande : interaction, auteur, salon, options et méthodes de réponse.",
    "en": "Command context: interaction, author, channel, options and response methods."
   },
   "methods": [
    "def get(name: str, default: Any = None) -> Any",
    "async def respond(content: str | None = None, *, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Sequence[Any] | None = None, ephemeral: bool | None = None, flags: int | None = None, tts: bool = False, files: Sequence[discord.File] | None = None, file: discord.File | None = None, allowed_mentions: Any | None = None) -> Dict[str, Any] | None",
    "async def followup(content: str | None = None, **kwargs: Any) -> Dict[str, Any]",
    "async def defer(*, ephemeral: bool | None = None) -> None",
    "async def edit(content: str | None = None, *, embed: discord.Embed | None = None, embeds: List[discord.Embed] | None = None, components: Sequence[Any] | None = None, files: Sequence[discord.File] | None = None, attachments: Sequence[Any] | None = None, allowed_mentions: Any | None = None) -> Dict[str, Any]",
    "async def delete() -> None",
    "async def send_modal(custom_id: Any, title: str | None = None, components: List[Any] | None = None) -> None",
    "async def reply(content: str | None = None, **kwargs: Any) -> Dict[str, Any] | None",
    "async def send(content: str | None = None, **kwargs: Any) -> Dict[str, Any] | None",
    "async def think(ephemeral: bool = False) -> None",
    "def set_ephemeral_default(value: bool) -> None"
   ],
   "values": null,
   "example": "@slash.command(description=\"Long task\")\nasync def report(ctx):\n    await ctx.defer(ephemeral=True)\n    await ctx.respond(\"Report ready\")\n    await ctx.edit(\"Report ready and sent\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashContext/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashContext/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashContext/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashContext/index.md"
   }
  },
  {
   "name": "create_context",
   "kind": "function",
   "section": "slash.context",
   "import": "from discord_interactions.slash import create_context",
   "aliases": [],
   "signature": "def create_context(interaction: discord.Interaction, command: SlashCommand | None = None, options: Dict[str, Any] | None = None) -> SlashContext",
   "summary": {
    "fr": "Crée un `SlashContext` (usage interne ou tests).",
    "en": "Creates a `SlashContext` (internal use or tests)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import create_context\n\n# Build a context outside a slash command, to reuse ctx.respond, ctx.user...\n@client.event\nasync def on_interaction(interaction):\n    ctx = create_context(interaction)\n    await ctx.respond(f\"Hi {ctx.user.display_name}\", ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_context/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_context/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_context/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_context/index.md"
   }
  },
  {
   "name": "AttachmentOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import AttachmentOption",
   "aliases": [],
   "signature": "class AttachmentOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None, allowed_extensions: List[str] | None = None, max_size: int | None = None, file_types: List[str] | None = None) -> None",
   "summary": {
    "fr": "Option pièce jointe (créée par `Attachment`).",
    "en": "Attachment option (created by `Attachment`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import AttachmentOption\n\n# file_types filters inside Discord, allowed_extensions and max_size are checked by the bot\nfile = AttachmentOption(\"log\", \"Log file\", allowed_extensions=[\".txt\", \".log\"], max_size=2_000_000)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AttachmentOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AttachmentOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AttachmentOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AttachmentOption/index.md"
   }
  },
  {
   "name": "BooleanOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import BooleanOption",
   "aliases": [],
   "signature": "class BooleanOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None) -> None",
   "summary": {
    "fr": "Option booléenne (créée par `Boolean`).",
    "en": "Boolean option (created by `Boolean`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import BooleanOption\n\nprivate = BooleanOption(\"private\", \"Reply visible only to you\", required=False, default=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/BooleanOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/BooleanOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/BooleanOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/BooleanOption/index.md"
   }
  },
  {
   "name": "ChannelOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import ChannelOption",
   "aliases": [],
   "signature": "class ChannelOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None, channel_types: List[int] | None = None) -> None",
   "summary": {
    "fr": "Option salon (créée par `Channel`).",
    "en": "Channel option (created by `Channel`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions import ChannelTypes\nfrom discord_interactions.slash import ChannelOption\n\nvoice = ChannelOption(\"voice\", \"Voice channel\", channel_types=ChannelTypes.VOICE_CHANNELS)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ChannelOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ChannelOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ChannelOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ChannelOption/index.md"
   }
  },
  {
   "name": "Choice",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions import Choice",
   "aliases": [],
   "signature": "class Choice(name: str, value: Any, name_localizations: Dict[str, str] | None = None) -> None",
   "summary": {
    "fr": "Choix fixe d'une option.",
    "en": "Fixed choice of an option."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import Choice, String, option\n\n\n@slash.command(description=\"Bot language\")\n@option(String(\"language\", \"Language\", choices=[\n    Choice(\"English\", \"en\", name_localizations={\"fr\": \"Anglais\"}),\n    Choice(\"Français\", \"fr\"),\n]))\nasync def language(ctx, language): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Choice/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Choice/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Choice/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Choice/index.md"
   }
  },
  {
   "name": "IntegerOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import IntegerOption",
   "aliases": [],
   "signature": "class IntegerOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None, min_value: int | None = None, max_value: int | None = None, choices: List[Choice] | None = None, autocomplete: Callable[..., Awaitable[List[Tuple[str, Any]]]] | None = None, step: int | None = None) -> None",
   "summary": {
    "fr": "Option entier (créée par `Integer`).",
    "en": "Integer option (created by `Integer`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import IntegerOption\n\nage = IntegerOption(\"age\", \"Your age\", min_value=13, max_value=120)\n\n@slash.command(description=\"Age\", options=[age])\nasync def set_age(ctx, age):\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/IntegerOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/IntegerOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/IntegerOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/IntegerOption/index.md"
   }
  },
  {
   "name": "MentionableOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import MentionableOption",
   "aliases": [],
   "signature": "class MentionableOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None) -> None",
   "summary": {
    "fr": "Option mentionnable (créée par `Mentionable`).",
    "en": "Mentionable option (created by `Mentionable`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import MentionableOption\n\ntarget = MentionableOption(\"target\", \"Member or role to notify\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MentionableOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MentionableOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MentionableOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MentionableOption/index.md"
   }
  },
  {
   "name": "NumberOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import NumberOption",
   "aliases": [],
   "signature": "class NumberOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None, min_value: float | None = None, max_value: float | None = None, choices: List[Choice] | None = None, autocomplete: Callable[..., Awaitable[List[Tuple[str, Any]]]] | None = None, precision: int | None = None) -> None",
   "summary": {
    "fr": "Option décimale (créée par `Number`).",
    "en": "Decimal option (created by `Number`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import NumberOption\n\nrating = NumberOption(\"rating\", \"Rating out of 5\", min_value=0, max_value=5, precision=1)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NumberOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NumberOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NumberOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NumberOption/index.md"
   }
  },
  {
   "name": "OptionBase",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import OptionBase",
   "aliases": [],
   "signature": "class OptionBase(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None) -> None",
   "summary": {
    "fr": "Base commune des options.",
    "en": "Common base of options."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import OptionBase\n\n# Common base class: every option has validator and transformer\ndef uppercase(value):\n    return value.upper()\n\ndef not_empty(value):\n    return bool(value.strip()) or \"The text cannot be empty\"\n\n# String(\"code\", \"Promo code\", transformer=uppercase, validator=not_empty)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/OptionBase/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/OptionBase/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/OptionBase/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/OptionBase/index.md"
   }
  },
  {
   "name": "RoleOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import RoleOption",
   "aliases": [],
   "signature": "class RoleOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None, exclude_everyone: bool = True, exclude_managed: bool = False) -> None",
   "summary": {
    "fr": "Option rôle (créée par `Role`).",
    "en": "Role option (created by `Role`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import RoleOption\n\nrole = RoleOption(\"role\", \"Role\", exclude_everyone=True, exclude_managed=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/RoleOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/RoleOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/RoleOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/RoleOption/index.md"
   }
  },
  {
   "name": "StringOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import StringOption",
   "aliases": [],
   "signature": "class StringOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None, min_length: int | None = None, max_length: int | None = None, choices: List[Choice] | None = None, autocomplete: Callable[..., Awaitable[List[Tuple[str, Any]]]] | None = None, pattern: str | None = None, pattern_error: str | None = None, _regex: Pattern[str] | None = None) -> None",
   "summary": {
    "fr": "Option texte (créée par `String`).",
    "en": "Text option (created by `String`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import StringOption\n\n# Long form of String(...), handy to pass options= to @slash.command\n@slash.command(description=\"Username\", options=[StringOption(\"username\", \"Your username\", min_length=3, max_length=16)])\nasync def username(ctx, username):\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/StringOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/StringOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/StringOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/StringOption/index.md"
   }
  },
  {
   "name": "UserOption",
   "kind": "class",
   "section": "slash.options",
   "import": "from discord_interactions.slash import UserOption",
   "aliases": [],
   "signature": "class UserOption(name: str, description: str, required: bool = True, name_localizations: Dict[str, str] | None = None, description_localizations: Dict[str, str] | None = None, default: Any = None, validator: Callable[[Any], bool | str] | None = None, transformer: Callable[[Any], Any] | None = None, allow_bots: bool = True, require_in_voice: bool = False) -> None",
   "summary": {
    "fr": "Option utilisateur (créée par `User`).",
    "en": "User option (created by `User`)."
   },
   "methods": [
    "def to_dict() -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import UserOption\n\n# Rejects bots and requires the member to be in a voice channel\ninvite = UserOption(\"member\", \"Who to invite\", allow_bots=False, require_in_voice=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/UserOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/UserOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/UserOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/UserOption/index.md"
   }
  },
  {
   "name": "ChannelTypes",
   "kind": "constants",
   "section": "slash.options",
   "import": "from discord_interactions import ChannelTypes",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Types de salons et groupes prêts à l'emploi : `TEXT_CHANNELS`, `VOICE_CHANNELS`, `THREAD_CHANNELS`, `ALL_TEXT`.",
    "en": "Channel types and ready-made groups: `TEXT_CHANNELS`, `VOICE_CHANNELS`, `THREAD_CHANNELS`, `ALL_TEXT`."
   },
   "methods": [],
   "values": {
    "GUILD_TEXT": "0",
    "DM": "1",
    "GUILD_VOICE": "2",
    "GROUP_DM": "3",
    "GUILD_CATEGORY": "4",
    "GUILD_ANNOUNCEMENT": "5",
    "ANNOUNCEMENT_THREAD": "10",
    "PUBLIC_THREAD": "11",
    "PRIVATE_THREAD": "12",
    "GUILD_STAGE_VOICE": "13",
    "GUILD_DIRECTORY": "14",
    "GUILD_FORUM": "15",
    "GUILD_MEDIA": "16",
    "TEXT_CHANNELS": "[0, 5]",
    "VOICE_CHANNELS": "[2, 13]",
    "THREAD_CHANNELS": "[10, 11, 12]",
    "ALL_TEXT": "[0, 5, 11, 12, 15]"
   },
   "example": "from discord_interactions.slash import Channel, ChannelTypes, option\n\n\n@slash.command(description=\"Join a voice channel\")\n@option(Channel(\"voice\", \"Voice channel\", channel_types=[ChannelTypes.GUILD_VOICE]))\nasync def join(ctx, voice):\n    await voice.connect()",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ChannelTypes/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ChannelTypes/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ChannelTypes/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ChannelTypes/index.md"
   }
  },
  {
   "name": "OptionType",
   "kind": "enum",
   "section": "slash.options",
   "import": "from discord_interactions.slash import OptionType",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Types d'options de l'API.",
    "en": "API option types."
   },
   "methods": [],
   "values": {
    "SUBCOMMAND": "1",
    "SUBCOMMAND_GROUP": "2",
    "STRING": "3",
    "INTEGER": "4",
    "BOOLEAN": "5",
    "USER": "6",
    "CHANNEL": "7",
    "ROLE": "8",
    "MENTIONABLE": "9",
    "NUMBER": "10",
    "ATTACHMENT": "11"
   },
   "example": "from discord_interactions.slash import OptionType\n\n# Raw API types (STRING = 3, INTEGER = 4, USER = 6...)\nif option[\"type\"] == OptionType.USER.value:\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/OptionType/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/OptionType/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/OptionType/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/OptionType/index.md"
   }
  },
  {
   "name": "Attachment",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import Attachment",
   "aliases": [],
   "signature": "def Attachment(name: str, description: str, *, required: bool = True, allowed_extensions: List[str] | None = None, max_size: int | None = None, file_types: List[str] | None = None, localizations: Dict[str, Tuple[str, str]] | None = None) -> AttachmentOption",
   "summary": {
    "fr": "Option pièce jointe. `file_types` filtre côté Discord, `allowed_extensions` et `max_size` côté bot.",
    "en": "Attachment option. `file_types` filters on Discord's side, `allowed_extensions` and `max_size` on the bot's side."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Attachment, option\n\n@slash.command(description=\"Analyze an image\")\n@option(Attachment(\"image\", \"Image\", file_types=[\"image\"], max_size=8_000_000))\nasync def analyze(ctx, image):\n    await ctx.respond(f\"{image.filename}: {image.width}×{image.height}\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Attachment/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Attachment/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Attachment/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Attachment/index.md"
   }
  },
  {
   "name": "Boolean",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import Boolean",
   "aliases": [],
   "signature": "def Boolean(name: str, description: str, *, required: bool = True, default: bool | None = None, localizations: Dict[str, Tuple[str, str]] | None = None) -> BooleanOption",
   "summary": {
    "fr": "Option vrai ou faux.",
    "en": "True or false option."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Boolean, option\n\n\n@slash.command(description=\"Welcome message\")\n@option(Boolean(\"public\", \"Visible to everyone?\", required=False, default=False))\nasync def welcome(ctx, public):\n    await ctx.respond(\"Welcome!\", ephemeral=not public)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Boolean/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Boolean/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Boolean/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Boolean/index.md"
   }
  },
  {
   "name": "Channel",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import Channel",
   "aliases": [],
   "signature": "def Channel(name: str, description: str, *, required: bool = True, channel_types: List[int] | None = None, localizations: Dict[str, Tuple[str, str]] | None = None) -> ChannelOption",
   "summary": {
    "fr": "Option salon, filtrable par type.",
    "en": "Channel option, filterable by type."
   },
   "methods": [],
   "values": null,
   "example": "import discord\nfrom discord_interactions.slash import Channel, option\n\n\n@slash.command(description=\"Announcement channel\")\n@option(Channel(\"channel\", \"Text channel\", channel_types=[discord.ChannelType.text.value]))\nasync def announcements(ctx, channel):\n    await ctx.respond(f\"Announcements in {channel.mention}.\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Channel/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Channel/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Channel/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Channel/index.md"
   }
  },
  {
   "name": "Integer",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import Integer",
   "aliases": [],
   "signature": "def Integer(name: str, description: str, *, required: bool = True, default: Any = None, min_value: int | None = None, max_value: int | None = None, choices: List[Choice | Tuple[str, int]] | None = None, autocomplete: Callable[..., Awaitable[List[Tuple[str, Any]]]] | None = None, step: int | None = None, validator: Callable[[int], bool | str] | None = None, transformer: Callable[[int], Any] | None = None, localizations: Dict[str, Tuple[str, str]] | None = None) -> IntegerOption",
   "summary": {
    "fr": "Option nombre entier, avec bornes, pas, choix et autocomplétion.",
    "en": "Integer option with bounds, step, choices and autocomplete."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Integer, option\n\n\n@slash.command(description=\"Delete messages\")\n@option(Integer(\"count\", \"How many?\", min_value=1, max_value=100))\nasync def clear(ctx, count):\n    deleted = await ctx.channel.purge(limit=count)\n    await ctx.respond(f\"{len(deleted)} messages deleted.\", ephemeral=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Integer/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Integer/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Integer/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Integer/index.md"
   }
  },
  {
   "name": "Mentionable",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import Mentionable",
   "aliases": [],
   "signature": "def Mentionable(name: str, description: str, *, required: bool = True, localizations: Dict[str, Tuple[str, str]] | None = None) -> MentionableOption",
   "summary": {
    "fr": "Option utilisateur ou rôle.",
    "en": "User or role option."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Mentionable, option\n\n\n@slash.command(description=\"Mention\")\n@option(Mentionable(\"target\", \"A member or a role\"))\nasync def ping(ctx, target):\n    await ctx.respond(f\"Hey {target.mention}\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Mentionable/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Mentionable/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Mentionable/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Mentionable/index.md"
   }
  },
  {
   "name": "Number",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import Number",
   "aliases": [],
   "signature": "def Number(name: str, description: str, *, required: bool = True, default: Any = None, min_value: float | None = None, max_value: float | None = None, choices: List[Choice | Tuple[str, float]] | None = None, autocomplete: Callable[..., Awaitable[List[Tuple[str, Any]]]] | None = None, precision: int | None = None, validator: Callable[[float], bool | str] | None = None, transformer: Callable[[float], Any] | None = None, localizations: Dict[str, Tuple[str, str]] | None = None) -> NumberOption",
   "summary": {
    "fr": "Option nombre décimal, avec bornes et arrondi.",
    "en": "Decimal option with bounds and rounding."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Number, option\n\n\n@slash.command(description=\"Convert euros\")\n@option(Number(\"euros\", \"Amount\", min_value=0, precision=2))\nasync def convert(ctx, euros):\n    await ctx.respond(f\"{euros} € = {euros * 1.08:.2f} $\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Number/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Number/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Number/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Number/index.md"
   }
  },
  {
   "name": "Role",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import Role",
   "aliases": [],
   "signature": "def Role(name: str, description: str, *, required: bool = True, exclude_everyone: bool = True, exclude_managed: bool = False, localizations: Dict[str, Tuple[str, str]] | None = None) -> RoleOption",
   "summary": {
    "fr": "Option rôle. La valeur arrive en `discord.Role`.",
    "en": "Role option. The value arrives as `discord.Role`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Role, User, option\n\n\n@slash.command(description=\"Give a role\")\n@option(User(\"member\", \"Who?\"))\n@option(Role(\"role\", \"Which role?\", exclude_managed=True))\nasync def give(ctx, member, role):\n    await member.add_roles(role)\n    await ctx.respond(f\"{role.mention} given to {member.mention}.\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Role/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Role/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Role/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Role/index.md"
   }
  },
  {
   "name": "String",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import String",
   "aliases": [],
   "signature": "def String(name: str, description: str, *, required: bool = True, default: Any = None, min_length: int | None = None, max_length: int | None = None, choices: List[Choice | Tuple[str, str]] | None = None, autocomplete: Callable[..., Awaitable[List[Tuple[str, Any]]]] | None = None, pattern: str | None = None, pattern_error: str | None = None, validator: Callable[[str], bool | str] | None = None, transformer: Callable[[str], Any] | None = None, localizations: Dict[str, Tuple[str, str]] | None = None) -> StringOption",
   "summary": {
    "fr": "Option texte, avec longueur, choix, regex et autocomplétion.",
    "en": "Text option with length, choices, regex and autocomplete."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import String, from_list, option\n\n@slash.command(description=\"Color\")\n@option(String(\"hex\", \"Color code\", pattern=r\"^#[0-9A-Fa-f]{6}$\", pattern_error=\"Format #RRGGBB\"))\n@option(String(\"name\", \"Name\", autocomplete=from_list([\"Red\", \"Green\", \"Blue\"])))\nasync def color(ctx, hex, name):\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/String/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/String/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/String/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/String/index.md"
   }
  },
  {
   "name": "User",
   "kind": "function",
   "section": "slash.options",
   "import": "from discord_interactions import User",
   "aliases": [],
   "signature": "def User(name: str, description: str, *, required: bool = True, allow_bots: bool = True, require_in_voice: bool = False, localizations: Dict[str, Tuple[str, str]] | None = None) -> UserOption",
   "summary": {
    "fr": "Option utilisateur. La valeur arrive en `discord.Member` (ou `discord.User` hors serveur).",
    "en": "User option. The value arrives as `discord.Member` (or `discord.User` outside guilds)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import User, option\n\n@slash.command(description=\"Profile\")\n@option(User(\"member\", \"Member\", allow_bots=False))\nasync def profile(ctx, member):\n    await ctx.respond(f\"{member.display_name} joined on {member.joined_at:%Y-%m-%d}\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/User/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/User/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/User/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/User/index.md"
   }
  },
  {
   "name": "PermissionConfig",
   "kind": "class",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import PermissionConfig",
   "aliases": [],
   "signature": "class PermissionConfig(user_permissions: int = 0, bot_permissions: int = 0, default_member_permissions: int | None = None, dm_permission: bool = True, contexts: List[int] | None = None, integration_types: List[int] | None = None, nsfw: bool = False, checks: List[Callable[[discord.Interaction], Awaitable[bool]]] = <factory>, owner_only: bool = False, owner_ids: Set[int] = <factory>, guild_only: bool = False, allowed_guilds: Set[int] | None = None, blocked_guilds: Set[int] = <factory>, allowed_users: Set[int] | None = None, blocked_users: Set[int] = <factory>, required_roles: Set[int] | None = None, required_any_role: Set[int] | None = None, allowed_channels: Set[int] | None = None, blocked_channels: Set[int] = <factory>, allowed_categories: Set[int] | None = None, allowed_hours: Set[int] | None = None) -> None",
   "summary": {
    "fr": "Ensemble des restrictions d'une commande, rempli par les décorateurs.",
    "en": "Every restriction of a command, filled by the decorators."
   },
   "methods": [
    "def to_api_dict() -> dict"
   ],
   "values": null,
   "example": "from discord_interactions.slash import PermissionConfig, check_permissions\n\n# The same rules as the decorators, reusable on a button\nstaff_config = PermissionConfig(guild_only=True, required_any_role={111111111111111111})",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/PermissionConfig/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/PermissionConfig/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/PermissionConfig/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/PermissionConfig/index.md"
   }
  },
  {
   "name": "IntegrationType",
   "kind": "constants",
   "section": "slash.permissions",
   "import": "from discord_interactions import IntegrationType",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Types d'installation : `GUILD_INSTALL`, `USER_INSTALL`.",
    "en": "Installation types: `GUILD_INSTALL`, `USER_INSTALL`."
   },
   "methods": [],
   "values": {
    "GUILD_INSTALL": "0",
    "USER_INSTALL": "1"
   },
   "example": "from discord_interactions.slash import IntegrationType\n\nIntegrationType.GUILD_INSTALL  # 0: installed on a server\nIntegrationType.USER_INSTALL  # 1: installed on the user's account",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/IntegrationType/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/IntegrationType/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/IntegrationType/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/IntegrationType/index.md"
   }
  },
  {
   "name": "InteractionContext",
   "kind": "constants",
   "section": "slash.permissions",
   "import": "from discord_interactions import InteractionContext",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Lieux d'utilisation : `GUILD`, `BOT_DM`, `PRIVATE_CHANNEL`.",
    "en": "Usage contexts: `GUILD`, `BOT_DM`, `PRIVATE_CHANNEL`."
   },
   "methods": [],
   "values": {
    "GUILD": "0",
    "BOT_DM": "1",
    "PRIVATE_CHANNEL": "2"
   },
   "example": "from discord_interactions.slash import InteractionContext\n\nInteractionContext.GUILD  # 0: servers\nInteractionContext.BOT_DM  # 1: DMs with the bot\nInteractionContext.PRIVATE_CHANNEL  # 2: DMs and group DMs, for a user-installed command",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/InteractionContext/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/InteractionContext/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/InteractionContext/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/InteractionContext/index.md"
   }
  },
  {
   "name": "Permissions",
   "kind": "enum",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import Permissions",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Drapeaux de permission Discord, jusqu'à `PIN_MESSAGES` et `BYPASS_SLOWMODE`.",
    "en": "Discord permission flags, up to `PIN_MESSAGES` and `BYPASS_SLOWMODE`."
   },
   "methods": [],
   "values": {
    "CREATE_INSTANT_INVITE": "1",
    "KICK_MEMBERS": "2",
    "BAN_MEMBERS": "4",
    "ADMINISTRATOR": "8",
    "MANAGE_CHANNELS": "16",
    "MANAGE_GUILD": "32",
    "ADD_REACTIONS": "64",
    "VIEW_AUDIT_LOG": "128",
    "PRIORITY_SPEAKER": "256",
    "STREAM": "512",
    "VIEW_CHANNEL": "1024",
    "SEND_MESSAGES": "2048",
    "SEND_TTS_MESSAGES": "4096",
    "MANAGE_MESSAGES": "8192",
    "EMBED_LINKS": "16384",
    "ATTACH_FILES": "32768",
    "READ_MESSAGE_HISTORY": "65536",
    "MENTION_EVERYONE": "131072",
    "USE_EXTERNAL_EMOJIS": "262144",
    "VIEW_GUILD_INSIGHTS": "524288",
    "CONNECT": "1048576",
    "SPEAK": "2097152",
    "MUTE_MEMBERS": "4194304",
    "DEAFEN_MEMBERS": "8388608",
    "MOVE_MEMBERS": "16777216",
    "USE_VAD": "33554432",
    "CHANGE_NICKNAME": "67108864",
    "MANAGE_NICKNAMES": "134217728",
    "MANAGE_ROLES": "268435456",
    "MANAGE_WEBHOOKS": "536870912",
    "MANAGE_GUILD_EXPRESSIONS": "1073741824",
    "USE_APPLICATION_COMMANDS": "2147483648",
    "REQUEST_TO_SPEAK": "4294967296",
    "MANAGE_EVENTS": "8589934592",
    "MANAGE_THREADS": "17179869184",
    "CREATE_PUBLIC_THREADS": "34359738368",
    "CREATE_PRIVATE_THREADS": "68719476736",
    "USE_EXTERNAL_STICKERS": "137438953472",
    "SEND_MESSAGES_IN_THREADS": "274877906944",
    "USE_EMBEDDED_ACTIVITIES": "549755813888",
    "MODERATE_MEMBERS": "1099511627776",
    "VIEW_CREATOR_MONETIZATION_ANALYTICS": "2199023255552",
    "USE_SOUNDBOARD": "4398046511104",
    "CREATE_GUILD_EXPRESSIONS": "8796093022208",
    "CREATE_EVENTS": "17592186044416",
    "USE_EXTERNAL_SOUNDS": "35184372088832",
    "SEND_VOICE_MESSAGES": "70368744177664",
    "SET_VOICE_CHANNEL_STATUS": "281474976710656",
    "SEND_POLLS": "562949953421312",
    "USE_EXTERNAL_APPS": "1125899906842624",
    "PIN_MESSAGES": "2251799813685248",
    "BYPASS_SLOWMODE": "4503599627370496"
   },
   "example": "from discord_interactions.slash import Permissions\n\n# Permission flags, combined with |\nrights = Permissions.KICK_MEMBERS | Permissions.BAN_MEMBERS\nprint(int(rights))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Permissions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Permissions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Permissions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Permissions/index.md"
   }
  },
  {
   "name": "allowed_channels",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import allowed_channels",
   "aliases": [],
   "signature": "def allowed_channels(*channel_ids: int) -> Callable",
   "summary": {
    "fr": "Limite la commande à certains salons.",
    "en": "Restricts the command to some channels."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import allowed_channels\n\n\n@slash.command(description=\"Play\")\n@allowed_channels(123456789012345678)  # only in #games\nasync def play(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/allowed_channels/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/allowed_channels/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/allowed_channels/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/allowed_channels/index.md"
   }
  },
  {
   "name": "allowed_guilds",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import allowed_guilds",
   "aliases": [],
   "signature": "def allowed_guilds(*guild_ids: int) -> Callable",
   "summary": {
    "fr": "Limite la commande à certains serveurs.",
    "en": "Restricts the command to some guilds."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import allowed_guilds\n\n\n@slash.command(description=\"Beta command\")\n@allowed_guilds(123456789012345678)\nasync def beta(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/allowed_guilds/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/allowed_guilds/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/allowed_guilds/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/allowed_guilds/index.md"
   }
  },
  {
   "name": "blocked_channels",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import blocked_channels",
   "aliases": [],
   "signature": "def blocked_channels(*channel_ids: int) -> Callable",
   "summary": {
    "fr": "Interdit la commande dans certains salons.",
    "en": "Forbids the command in some channels."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import blocked_channels\n\n\n@slash.command(description=\"Music\")\n@blocked_channels(123456789012345678)  # never in #announcements\nasync def music(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/blocked_channels/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/blocked_channels/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/blocked_channels/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/blocked_channels/index.md"
   }
  },
  {
   "name": "bot_has_permissions",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import bot_has_permissions",
   "aliases": [],
   "signature": "def bot_has_permissions(**perms) -> Callable",
   "summary": {
    "fr": "Exige des permissions du bot dans le salon.",
    "en": "Requires bot permissions in the channel."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import bot_has_permissions\n\n\n@slash.command(description=\"Clear the channel\")\n@bot_has_permissions(manage_messages=True, read_message_history=True)\nasync def clear(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/bot_has_permissions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/bot_has_permissions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/bot_has_permissions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/bot_has_permissions/index.md"
   }
  },
  {
   "name": "check",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import check",
   "aliases": [],
   "signature": "def check(check_func: Callable[[discord.Interaction], Awaitable[bool]]) -> Callable",
   "summary": {
    "fr": "Ajoute une vérification async personnalisée `(interaction) -> bool`.",
    "en": "Adds a custom async check `(interaction) -> bool`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import check\n\n\nasync def account_linked(interaction):\n    return await db.is_linked(interaction.user.id)\n\n\n@slash.command(description=\"Game profile\")\n@check(account_linked)\nasync def profile(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/check/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/check/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/check/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/check/index.md"
   }
  },
  {
   "name": "check_permissions",
   "kind": "coroutine",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import check_permissions",
   "aliases": [],
   "signature": "async def check_permissions(interaction: discord.Interaction, config: PermissionConfig) -> tuple[bool, str | None]",
   "summary": {
    "fr": "Vérifie toutes les restrictions. Renvoie `(autorisé, message)`.",
    "en": "Checks every restriction. Returns `(allowed, message)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import PermissionConfig, check_permissions\n\nstaff_config = PermissionConfig(guild_only=True, required_any_role={111111111111111111})\n\n@router.on(\"close_ticket\")\nasync def close_ticket(interaction, data):\n    allowed, error = await check_permissions(interaction, staff_config)\n    if not allowed:\n        return await respond_to_interaction(interaction, error, ephemeral=True)\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/check_permissions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/check_permissions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/check_permissions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/check_permissions/index.md"
   }
  },
  {
   "name": "contexts",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import contexts",
   "aliases": [],
   "signature": "def contexts(*values: int) -> Callable",
   "summary": {
    "fr": "Lieux d'utilisation : serveur, message privé avec le bot, groupes privés.",
    "en": "Where the command can be used: guilds, DMs with the bot, private groups."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import InteractionContext, contexts\n\n\n@slash.command(description=\"Note\")\n@contexts(InteractionContext.GUILD, InteractionContext.BOT_DM)\nasync def note(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/contexts/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/contexts/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/contexts/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/contexts/index.md"
   }
  },
  {
   "name": "default_permissions",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import default_permissions",
   "aliases": [],
   "signature": "def default_permissions(**perms) -> Callable",
   "summary": {
    "fr": "Masque la commande aux membres sans ces permissions, directement dans Discord.",
    "en": "Hides the command from members lacking these permissions, directly in Discord."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import default_permissions\n\n\n@slash.command(description=\"Ban\")\n@default_permissions(ban_members=True)  # hidden from members without this permission\nasync def ban(ctx, member): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/default_permissions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/default_permissions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/default_permissions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/default_permissions/index.md"
   }
  },
  {
   "name": "dm_only",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import dm_only",
   "aliases": [],
   "signature": "def dm_only() -> Callable",
   "summary": {
    "fr": "Commande utilisable seulement en message privé.",
    "en": "Command usable in direct messages only."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import dm_only\n\n\n@slash.command(description=\"Private settings\")\n@dm_only()\nasync def private(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/dm_only/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/dm_only/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/dm_only/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/dm_only/index.md"
   }
  },
  {
   "name": "guild_only",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import guild_only",
   "aliases": [],
   "signature": "def guild_only() -> Callable",
   "summary": {
    "fr": "Commande utilisable seulement en serveur.",
    "en": "Command usable in guilds only."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import guild_only\n\n\n@slash.command(description=\"Server members\")\n@guild_only()\nasync def members(ctx):\n    await ctx.respond(f\"{ctx.guild.member_count} members\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/guild_only/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/guild_only/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/guild_only/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/guild_only/index.md"
   }
  },
  {
   "name": "has_permissions",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import has_permissions",
   "aliases": [],
   "signature": "def has_permissions(**perms) -> Callable",
   "summary": {
    "fr": "Exige des permissions de l'utilisateur dans le salon : `@has_permissions(manage_messages=True)`.",
    "en": "Requires user permissions in the channel: `@has_permissions(manage_messages=True)`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import default_permissions, has_permissions\n\n@slash.command(description=\"Purge the channel\")\n@default_permissions(manage_messages=True)\n@has_permissions(manage_messages=True)\nasync def purge(ctx):\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/has_permissions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/has_permissions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/has_permissions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/has_permissions/index.md"
   }
  },
  {
   "name": "integration_types",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import integration_types",
   "aliases": [],
   "signature": "def integration_types(*values: int) -> Callable",
   "summary": {
    "fr": "Types d'installation : serveur, utilisateur, ou les deux.",
    "en": "Installation types: guild, user, or both."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import IntegrationType, integration_types\n\n\n@slash.command(description=\"Translate\")\n@integration_types(IntegrationType.GUILD_INSTALL, IntegrationType.USER_INSTALL)\nasync def translate(ctx, text): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/integration_types/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/integration_types/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/integration_types/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/integration_types/index.md"
   }
  },
  {
   "name": "nsfw",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import nsfw",
   "aliases": [],
   "signature": "def nsfw() -> Callable",
   "summary": {
    "fr": "Commande réservée aux salons NSFW.",
    "en": "Command restricted to NSFW channels."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import nsfw\n\n\n@slash.command(description=\"Restricted content\")\n@nsfw()\nasync def restricted(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/nsfw/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/nsfw/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/nsfw/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/nsfw/index.md"
   }
  },
  {
   "name": "owner_only",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import owner_only",
   "aliases": [],
   "signature": "def owner_only(owner_ids: Set[int] | None = None) -> Callable",
   "summary": {
    "fr": "Commande réservée aux propriétaires du bot.",
    "en": "Command restricted to the bot owners."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import owner_only\n\n\n@slash.command(description=\"Stop the bot\")\n@owner_only()  # owners read from the Discord application\nasync def stop(ctx):\n    await ctx.respond(\"Stopping.\")\n    await ctx.bot.close()",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/owner_only/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/owner_only/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/owner_only/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/owner_only/index.md"
   }
  },
  {
   "name": "require_roles",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import require_roles",
   "aliases": [],
   "signature": "def require_roles(*role_ids: int, require_all: bool = False) -> Callable",
   "summary": {
    "fr": "Exige un des rôles donnés, ou tous avec `require_all=True`.",
    "en": "Requires one of the given roles, or all of them with `require_all=True`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import require_roles\n\nMOD, ADMIN = 123456789012345678, 234567890123456789\n\n\n@slash.command(description=\"Warn a member\")\n@require_roles(MOD, ADMIN)  # either one is enough\nasync def warn(ctx, member): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/require_roles/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/require_roles/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/require_roles/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/require_roles/index.md"
   }
  },
  {
   "name": "time_restricted",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions.slash import time_restricted",
   "aliases": [],
   "signature": "def time_restricted(hours: List[int]) -> Callable",
   "summary": {
    "fr": "Limite la commande à certaines heures (UTC).",
    "en": "Restricts the command to some hours (UTC)."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import time_restricted\n\n\n@slash.command(description=\"Support\")\n@time_restricted(list(range(8, 20)))  # from 8 am to 8 pm UTC\nasync def support(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/time_restricted/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/time_restricted/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/time_restricted/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/time_restricted/index.md"
   }
  },
  {
   "name": "user_installable",
   "kind": "function",
   "section": "slash.permissions",
   "import": "from discord_interactions import user_installable",
   "aliases": [],
   "signature": "def user_installable() -> Callable",
   "summary": {
    "fr": "Commande installable par l'utilisateur et utilisable partout.",
    "en": "Command installable by users and usable everywhere."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import user_installable\n\n@slash.command(description=\"Private note\", ephemeral=True)\n@user_installable()\nasync def note(ctx):\n    await ctx.respond(\"Available everywhere, even in direct messages.\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/user_installable/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/user_installable/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/user_installable/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/user_installable/index.md"
   }
  },
  {
   "name": "CooldownBucket",
   "kind": "class",
   "section": "slash.cooldowns",
   "import": "from discord_interactions.slash import CooldownBucket",
   "aliases": [],
   "signature": "class CooldownBucket(rate: int, per: float, type: CooldownType = CooldownType.USER, bucket_key: Callable[[discord.Interaction], str] | None = None) -> None",
   "summary": {
    "fr": "Fenêtre glissante d'un cooldown. `acquire()` vérifie et consomme en une étape.",
    "en": "Sliding window of a cooldown. `acquire()` checks and consumes in one step."
   },
   "methods": [
    "def acquire(interaction: discord.Interaction) -> Tuple[bool, float]",
    "async def check(interaction: discord.Interaction) -> Tuple[bool, float]",
    "async def trigger(interaction: discord.Interaction) -> None",
    "async def reset(interaction: discord.Interaction) -> None",
    "def reset_all() -> None",
    "def retry_after(interaction: discord.Interaction) -> float"
   ],
   "values": null,
   "example": "from discord_interactions.slash import CooldownBucket, CooldownType\n\n# A cooldown on a button (the decorators only work on commands)\nclick = CooldownBucket(rate=1, per=5, type=CooldownType.USER)\n\n@router.on(\"draw\")\nasync def draw(interaction, data):\n    allowed, wait = click.acquire(interaction)\n    if not allowed:\n        return await respond_to_interaction(interaction, f\"Wait {wait:.0f} s.\", ephemeral=True)\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CooldownBucket/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CooldownBucket/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CooldownBucket/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CooldownBucket/index.md"
   }
  },
  {
   "name": "DynamicCooldown",
   "kind": "class",
   "section": "slash.cooldowns",
   "import": "from discord_interactions import DynamicCooldown",
   "aliases": [],
   "signature": "class DynamicCooldown(rate: int = 1, per: float = 5.0, type: CooldownType = CooldownType.USER, bucket_key: Callable[[discord.Interaction], str] | None = None, per_func: Callable[[discord.Interaction], float] = lambda) -> None",
   "summary": {
    "fr": "Cooldown dont la durée est calculée à chaque appel.",
    "en": "Cooldown whose duration is computed on every call."
   },
   "methods": [
    "def apply(func: Callable) -> Callable",
    "def acquire(interaction: discord.Interaction) -> Tuple[bool, float]",
    "async def check(interaction: discord.Interaction) -> Tuple[bool, float]",
    "async def trigger(interaction: discord.Interaction) -> None",
    "async def reset(interaction: discord.Interaction) -> None",
    "def reset_all() -> None",
    "def retry_after(interaction: discord.Interaction) -> float"
   ],
   "values": null,
   "example": "from discord_interactions.slash import DynamicCooldown\n\ndef duration(interaction):\n    return 5.0 if is_premium(interaction.user.id) else 30.0\n\n@slash.command(description=\"Generate\")\n@DynamicCooldown(rate=1, per_func=duration)\nasync def generate(ctx):\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/DynamicCooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/DynamicCooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/DynamicCooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/DynamicCooldown/index.md"
   }
  },
  {
   "name": "SharedCooldown",
   "kind": "class",
   "section": "slash.cooldowns",
   "import": "from discord_interactions import SharedCooldown",
   "aliases": [],
   "signature": "class SharedCooldown(name: str, rate: int = 1, per: float = 5.0, type: CooldownType = CooldownType.USER, bucket_key: Callable[[discord.Interaction], str] | None = None) -> None",
   "summary": {
    "fr": "Cooldown partagé entre plusieurs commandes.",
    "en": "Cooldown shared between several commands."
   },
   "methods": [
    "def apply(func: Callable) -> Callable"
   ],
   "values": null,
   "example": "from discord_interactions.slash import SharedCooldown\n\neconomy = SharedCooldown(\"economy\", rate=5, per=60)\n\n@slash.command(description=\"Balance\")\n@economy\nasync def balance(ctx):\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SharedCooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SharedCooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SharedCooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SharedCooldown/index.md"
   }
  },
  {
   "name": "CooldownType",
   "kind": "enum",
   "section": "slash.cooldowns",
   "import": "from discord_interactions.slash import CooldownType",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Portées de cooldown.",
    "en": "Cooldown scopes."
   },
   "methods": [],
   "values": {
    "USER": "'user'",
    "CHANNEL": "'channel'",
    "GUILD": "'guild'",
    "MEMBER": "'member'",
    "GLOBAL": "'global'",
    "CATEGORY": "'category'",
    "ROLE": "'role'",
    "CUSTOM": "'custom'"
   },
   "example": "from discord_interactions.slash import CooldownType, cooldown\n\n\n@slash.command(description=\"Report\")\n@cooldown(1, 30, type=CooldownType.GUILD)\nasync def report(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CooldownType/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CooldownType/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CooldownType/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CooldownType/index.md"
   }
  },
  {
   "name": "channel_cooldown",
   "kind": "function",
   "section": "slash.cooldowns",
   "import": "from discord_interactions.slash import channel_cooldown",
   "aliases": [],
   "signature": "def channel_cooldown(rate: int = 1, per: float = 5.0) -> Callable",
   "summary": {
    "fr": "Cooldown par salon.",
    "en": "Per-channel cooldown."
   },
   "methods": [],
   "values": null,
   "example": "@slash.command(description=\"Question of the day\")\n@channel_cooldown(1, 60)  # once a minute in each channel\nasync def question(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/channel_cooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/channel_cooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/channel_cooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/channel_cooldown/index.md"
   }
  },
  {
   "name": "cooldown",
   "kind": "function",
   "section": "slash.cooldowns",
   "import": "from discord_interactions import cooldown",
   "aliases": [],
   "signature": "def cooldown(rate: int = 1, per: float = 5.0, type: CooldownType = CooldownType.USER, bucket_key: Callable[[discord.Interaction], str] | None = None) -> Callable",
   "summary": {
    "fr": "Limite l'usage d'une commande : `@cooldown(1, 5)` donne une utilisation toutes les 5 secondes par utilisateur.",
    "en": "Rate-limits a command: `@cooldown(1, 5)` allows one use every 5 seconds per user."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import CooldownType, cooldown\n\n@slash.command(description=\"Daily reward\")\n@cooldown(1, 86_400, type=CooldownType.MEMBER)\nasync def daily(ctx):\n    await ctx.respond(\"+100 coins\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/cooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/cooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/cooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/cooldown/index.md"
   }
  },
  {
   "name": "global_cooldown",
   "kind": "function",
   "section": "slash.cooldowns",
   "import": "from discord_interactions.slash import global_cooldown",
   "aliases": [],
   "signature": "def global_cooldown(rate: int = 1, per: float = 5.0) -> Callable",
   "summary": {
    "fr": "Cooldown commun à tout le monde.",
    "en": "Cooldown shared by everyone."
   },
   "methods": [],
   "values": null,
   "example": "@slash.command(description=\"Generate an image\")\n@global_cooldown(10, 60)  # 10 generations per minute for the whole bot\nasync def image(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/global_cooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/global_cooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/global_cooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/global_cooldown/index.md"
   }
  },
  {
   "name": "guild_cooldown",
   "kind": "function",
   "section": "slash.cooldowns",
   "import": "from discord_interactions import guild_cooldown",
   "aliases": [],
   "signature": "def guild_cooldown(rate: int = 1, per: float = 5.0) -> Callable",
   "summary": {
    "fr": "Cooldown par serveur.",
    "en": "Per-guild cooldown."
   },
   "methods": [],
   "values": null,
   "example": "@slash.command(description=\"Start an event\")\n@guild_cooldown(1, 600)  # once every 10 minutes on the server\nasync def event(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/guild_cooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/guild_cooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/guild_cooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/guild_cooldown/index.md"
   }
  },
  {
   "name": "member_cooldown",
   "kind": "function",
   "section": "slash.cooldowns",
   "import": "from discord_interactions.slash import member_cooldown",
   "aliases": [],
   "signature": "def member_cooldown(rate: int = 1, per: float = 5.0) -> Callable",
   "summary": {
    "fr": "Cooldown par membre (utilisateur dans un serveur).",
    "en": "Per-member cooldown (user within a guild)."
   },
   "methods": [],
   "values": null,
   "example": "@slash.command(description=\"Work\")\n@member_cooldown(1, 3600)  # per person and per server\nasync def work(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/member_cooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/member_cooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/member_cooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/member_cooldown/index.md"
   }
  },
  {
   "name": "user_cooldown",
   "kind": "function",
   "section": "slash.cooldowns",
   "import": "from discord_interactions import user_cooldown",
   "aliases": [],
   "signature": "def user_cooldown(rate: int = 1, per: float = 5.0) -> Callable",
   "summary": {
    "fr": "Cooldown par utilisateur.",
    "en": "Per-user cooldown."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import user_cooldown\n\n\n@slash.command(description=\"Daily reward\")\n@user_cooldown(1, 86_400)  # once a day per person\nasync def daily(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/user_cooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/user_cooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/user_cooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/user_cooldown/index.md"
   }
  },
  {
   "name": "AutocompleteContext",
   "kind": "class",
   "section": "slash.autocomplete",
   "import": "from discord_interactions import AutocompleteContext",
   "aliases": [],
   "signature": "class AutocompleteContext(interaction: discord.Interaction, value: str, option_name: str, focused: bool = True, options: Dict[str, Any] = <factory>) -> None",
   "summary": {
    "fr": "Contexte d'autocomplétion : saisie en cours (`value`), option et autres options remplies.",
    "en": "Autocomplete context: current input (`value`), option and other filled options."
   },
   "methods": [],
   "values": null,
   "example": "async def cities(ctx):\n    ctx.value  # what the user is typing\n    ctx.options  # the other options already filled in\n    ctx.user, ctx.guild, ctx.locale\n    return [(c, c) for c in CITIES if c.lower().startswith(ctx.value.lower())][:25]",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AutocompleteContext/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AutocompleteContext/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AutocompleteContext/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AutocompleteContext/index.md"
   }
  },
  {
   "name": "AutocompleteRegistry",
   "kind": "class",
   "section": "slash.autocomplete",
   "import": "from discord_interactions.slash import AutocompleteRegistry",
   "aliases": [],
   "signature": "class AutocompleteRegistry()",
   "summary": {
    "fr": "Registre interne des fonctions d'autocomplétion.",
    "en": "Internal registry of autocomplete functions."
   },
   "methods": [
    "def register(command_name: str, option_name: str, handler: Callable[..., Awaitable[List[Tuple[str, Any]]]]) -> None",
    "def register_options(command_path: str, command: Any) -> None",
    "def register_global(option_name: str, handler: Callable[..., Awaitable[List[Tuple[str, Any]]]]) -> None",
    "def get_handler(command_name: str, option_name: str) -> Callable[..., Awaitable[List[Tuple[str, Any]]]] | None",
    "async def handle(interaction: discord.Interaction) -> None"
   ],
   "values": null,
   "example": "from discord_interactions.slash import AutocompleteRegistry, from_list\n\n# Only useful without SlashManager (which already has one)\nregistry = AutocompleteRegistry()\nregistry.register(\"game\", \"name\", from_list([\"Chess\", \"Go\"]))\nregistry.register_global(\"language\", from_list([\"fr\", \"en\"]))  # any option named \"language\"\n\n@client.event\nasync def on_interaction(interaction):\n    if interaction.type.value == 4:  # autocomplete\n        await registry.handle(interaction)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AutocompleteRegistry/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AutocompleteRegistry/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AutocompleteRegistry/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AutocompleteRegistry/index.md"
   }
  },
  {
   "name": "autocomplete_handler",
   "kind": "function",
   "section": "slash.autocomplete",
   "import": "from discord_interactions.slash import autocomplete_handler",
   "aliases": [],
   "signature": "def autocomplete_handler(command: str | None = None, option: str | None = None) -> Callable",
   "summary": {
    "fr": "Marque une fonction comme autocomplétion d'une commande.",
    "en": "Marks a function as the autocomplete of a command."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import autocomplete_handler\n\n# Tags the function (target command and option); registration is done with slash.autocomplete\n@slash.autocomplete(\"search\", \"query\")\n@autocomplete_handler(command=\"search\", option=\"query\")\nasync def suggestions(ctx):\n    results = await index.search(ctx.value)\n    return [(r.title, r.id) for r in results]",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/autocomplete_handler/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/autocomplete_handler/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/autocomplete_handler/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/autocomplete_handler/index.md"
   }
  },
  {
   "name": "chain",
   "kind": "function",
   "section": "slash.autocomplete",
   "import": "from discord_interactions.slash import chain",
   "aliases": [],
   "signature": "def chain(*handlers: Callable[..., Awaitable[List[Tuple[str, Any]]]]) -> Callable[..., Awaitable[List[Tuple[str, Any]]]]",
   "summary": {
    "fr": "Combine plusieurs autocomplétions, sans doublons.",
    "en": "Combines several autocompletes, without duplicates."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import chain, from_list\n\nfavorites = from_list([\"Paris\", \"Lyon\"])\neverything = from_list(CITIES)\nsuggestions = chain(favorites, everything)  # favorites first, then the rest",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/chain/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/chain/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/chain/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/chain/index.md"
   }
  },
  {
   "name": "conditional",
   "kind": "function",
   "section": "slash.autocomplete",
   "import": "from discord_interactions.slash import conditional",
   "aliases": [],
   "signature": "def conditional(condition: Callable[[AutocompleteContext], bool], if_true: Callable[..., Awaitable[List[Tuple[str, Any]]]], if_false: Callable[..., Awaitable[List[Tuple[str, Any]]]]) -> Callable[..., Awaitable[List[Tuple[str, Any]]]]",
   "summary": {
    "fr": "Choisit une autocomplétion selon le contexte.",
    "en": "Picks an autocomplete depending on the context."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import conditional, from_list\n\nsuggestions = conditional(\n    lambda ctx: ctx.locale.startswith(\"fr\"),\n    from_list([\"Bonjour\", \"Salut\"]),\n    from_list([\"Hello\", \"Hi\"]),\n)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/conditional/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/conditional/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/conditional/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/conditional/index.md"
   }
  },
  {
   "name": "filter_choices",
   "kind": "function",
   "section": "slash.autocomplete",
   "import": "from discord_interactions.slash import filter_choices",
   "aliases": [],
   "signature": "def filter_choices(choices: Sequence[Tuple[str, Any]], query: str, *, case_sensitive: bool = False, fuzzy: bool = False, max_results: int = 25) -> List[Tuple[str, Any]]",
   "summary": {
    "fr": "Filtre et trie des choix selon la saisie : exact, début, contenu, puis approximatif.",
    "en": "Filters and ranks choices against the input: exact, prefix, contains, then fuzzy."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import filter_choices\n\nasync def cities(ctx):\n    return filter_choices([(c, c) for c in CITIES], ctx.value, fuzzy=True)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/filter_choices/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/filter_choices/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/filter_choices/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/filter_choices/index.md"
   }
  },
  {
   "name": "from_coroutine",
   "kind": "function",
   "section": "slash.autocomplete",
   "import": "from discord_interactions.slash import from_coroutine",
   "aliases": [],
   "signature": "def from_coroutine(coro_func: Callable[..., Awaitable[List[str]]], *, cache_ttl: float = 0) -> Callable[..., Awaitable[List[Tuple[str, Any]]]]",
   "summary": {
    "fr": "Autocomplétion à partir d'une fonction async, avec cache optionnel.",
    "en": "Autocomplete from an async function, with optional caching."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import String, from_coroutine, option\n\n\nasync def products():  # called with no argument\n    return await db.product_names()  # list of str\n\n\n@slash.command(description=\"Find a product\")\n@option(String(\"product\", \"Product\", autocomplete=from_coroutine(products, cache_ttl=60)))\nasync def find(ctx, product): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/from_coroutine/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/from_coroutine/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/from_coroutine/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/from_coroutine/index.md"
   }
  },
  {
   "name": "from_dict",
   "kind": "function",
   "section": "slash.autocomplete",
   "import": "from discord_interactions import from_dict",
   "aliases": [],
   "signature": "def from_dict(mapping: Dict[str, Any]) -> Callable[..., Awaitable[List[Tuple[str, Any]]]]",
   "summary": {
    "fr": "Autocomplétion à partir d'un dict `{libellé: valeur}`.",
    "en": "Autocomplete from a `{label: value}` dict."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import String, from_dict, option\n\nTIMEZONES = {\"Paris\": \"Europe/Paris\", \"Montreal\": \"America/Toronto\", \"Tokyo\": \"Asia/Tokyo\"}\n\n\n@slash.command(description=\"Local time\")\n@option(String(\"city\", \"City\", autocomplete=from_dict(TIMEZONES)))\nasync def time(ctx, city):  # receives \"Europe/Paris\"\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/from_dict/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/from_dict/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/from_dict/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/from_dict/index.md"
   }
  },
  {
   "name": "from_list",
   "kind": "function",
   "section": "slash.autocomplete",
   "import": "from discord_interactions import from_list",
   "aliases": [],
   "signature": "def from_list(items: List[str], *, value_transform: Callable[[str], Any] | None = None) -> Callable[..., Awaitable[List[Tuple[str, Any]]]]",
   "summary": {
    "fr": "Autocomplétion à partir d'une liste de chaînes.",
    "en": "Autocomplete from a list of strings."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import String, from_list, option\n\n\n@slash.command(description=\"Pick a fruit\")\n@option(String(\"fruit\", \"Fruit\", autocomplete=from_list([\"Apple\", \"Pear\", \"Peach\", \"Plum\"])))\nasync def fruit(ctx, fruit): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/from_list/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/from_list/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/from_list/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/from_list/index.md"
   }
  },
  {
   "name": "Middleware",
   "kind": "class",
   "section": "slash.middleware",
   "import": "from discord_interactions.slash import Middleware",
   "aliases": [],
   "signature": "class Middleware(name: str, before: Callable[[SlashContext], Awaitable[bool | None]] | None = None, after: Callable[[SlashContext, Any, Exception | None], Awaitable[None]] | None = None, on_error: Callable[[SlashContext, Exception], Awaitable[bool | None]] | None = None, priority: int = 100, commands: List[str] | None = None, exclude_commands: List[str] | None = None) -> None",
   "summary": {
    "fr": "Hooks avant, après et en cas d'erreur, filtrables par commande.",
    "en": "Before, after and error hooks, filterable per command."
   },
   "methods": [
    "def should_apply(command_name: str) -> bool"
   ],
   "values": null,
   "example": "@slash.middleware()\nasync def banned(ctx):\n    if ctx.user.id in BANNED:\n        await ctx.respond(\"You cannot use this bot.\", ephemeral=True)\n        return False  # blocks the command",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Middleware/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Middleware/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Middleware/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Middleware/index.md"
   }
  },
  {
   "name": "MiddlewareStack",
   "kind": "class",
   "section": "slash.middleware",
   "import": "from discord_interactions.slash import MiddlewareStack",
   "aliases": [],
   "signature": "class MiddlewareStack()",
   "summary": {
    "fr": "Pile de middlewares triée par priorité.",
    "en": "Stack of middlewares sorted by priority."
   },
   "methods": [
    "def add(middleware: Middleware) -> None",
    "def remove(name: str) -> bool",
    "async def run_before(ctx: SlashContext) -> bool",
    "async def run_after(ctx: SlashContext, result: Any, error: Exception | None) -> None",
    "async def run_error(ctx: SlashContext, error: Exception) -> bool"
   ],
   "values": null,
   "example": "from discord_interactions.slash import Middleware, MiddlewareStack\n\n# SlashManager already has one: slash.add_middleware / slash.remove_middleware\nstack = MiddlewareStack()\nstack.add(Middleware(\"log\", before=log_command))\nstack.remove(\"log\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MiddlewareStack/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MiddlewareStack/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MiddlewareStack/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MiddlewareStack/index.md"
   }
  },
  {
   "name": "MiddlewarePhase",
   "kind": "enum",
   "section": "slash.middleware",
   "import": "from discord_interactions.slash import MiddlewarePhase",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Phases d'exécution d'un middleware.",
    "en": "Middleware execution phases."
   },
   "methods": [],
   "values": {
    "BEFORE": "'before'",
    "AFTER": "'after'",
    "ERROR": "'error'",
    "SUCCESS": "'success'"
   },
   "example": "from discord_interactions.slash import MiddlewarePhase\n\n# When a middleware can step in\nMiddlewarePhase.BEFORE  # before the command\nMiddlewarePhase.AFTER  # after, successful or not\nMiddlewarePhase.ERROR  # on error\nMiddlewarePhase.SUCCESS  # only when successful",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MiddlewarePhase/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MiddlewarePhase/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MiddlewarePhase/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MiddlewarePhase/index.md"
   }
  },
  {
   "name": "analytics_middleware",
   "kind": "function",
   "section": "slash.middleware",
   "import": "from discord_interactions.slash import analytics_middleware",
   "aliases": [],
   "signature": "def analytics_middleware(*, track_func: Callable[[str, Dict[str, Any]], Awaitable[None]]) -> Middleware",
   "summary": {
    "fr": "Envoie un événement d'usage par commande à ta fonction.",
    "en": "Sends one usage event per command to your function."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import analytics_middleware\n\n\nasync def track(event, info):  # event == \"command_used\"\n    await db.increment(info[\"command\"], success=info[\"success\"])\n\n\nslash.add_middleware(analytics_middleware(track_func=track))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/analytics_middleware/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/analytics_middleware/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/analytics_middleware/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/analytics_middleware/index.md"
   }
  },
  {
   "name": "error_handler_middleware",
   "kind": "function",
   "section": "slash.middleware",
   "import": "from discord_interactions import error_handler_middleware",
   "aliases": [],
   "signature": "def error_handler_middleware(*, send_error_to_user: bool = True, error_message: str = 'An error occurred while processing your command.', log_errors: bool = True, on_error: Callable[[SlashContext, Exception], Awaitable[None]] | None = None) -> Middleware",
   "summary": {
    "fr": "Gestion d'erreurs globale avec message à l'utilisateur.",
    "en": "Global error handling with a message to the user."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import error_handler_middleware\n\nslash.add_middleware(error_handler_middleware(error_message=\"Oops, something went wrong.\"))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/error_handler_middleware/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/error_handler_middleware/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/error_handler_middleware/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/error_handler_middleware/index.md"
   }
  },
  {
   "name": "logging_middleware",
   "kind": "function",
   "section": "slash.middleware",
   "import": "from discord_interactions import logging_middleware",
   "aliases": [],
   "signature": "def logging_middleware(*, log_func: Callable[[str], None] | None = None, include_options: bool = True, include_timing: bool = True) -> Middleware",
   "summary": {
    "fr": "Journalise chaque commande, ses options et sa durée.",
    "en": "Logs every command, its options and its duration."
   },
   "methods": [],
   "values": null,
   "example": "import logging\nfrom discord_interactions.slash import logging_middleware\n\nlogging.basicConfig(level=logging.INFO)\nslash.add_middleware(logging_middleware())",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/logging_middleware/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/logging_middleware/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/logging_middleware/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/logging_middleware/index.md"
   }
  },
  {
   "name": "maintenance_middleware",
   "kind": "function",
   "section": "slash.middleware",
   "import": "from discord_interactions.slash import maintenance_middleware",
   "aliases": [],
   "signature": "def maintenance_middleware(*, is_enabled: Callable[[], bool] = lambda, allowed_users: List[int] | None = None, message: str = 'The bot is currently under maintenance. Please try again...) -> Middleware",
   "summary": {
    "fr": "Mode maintenance : bloque les commandes sauf pour certains utilisateurs.",
    "en": "Maintenance mode: blocks commands except for some users."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import maintenance_middleware\n\nIN_MAINTENANCE = False\n\nslash.add_middleware(maintenance_middleware(\n    is_enabled=lambda: IN_MAINTENANCE,\n    allowed_users=[MY_ID],\n    message=\"The bot is under maintenance, come back in a few minutes.\",\n))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/maintenance_middleware/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/maintenance_middleware/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/maintenance_middleware/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/maintenance_middleware/index.md"
   }
  },
  {
   "name": "ratelimit_middleware",
   "kind": "function",
   "section": "slash.middleware",
   "import": "from discord_interactions.slash import ratelimit_middleware",
   "aliases": [],
   "signature": "def ratelimit_middleware(*, max_commands_per_minute: int = 30, per: str = 'user') -> Middleware",
   "summary": {
    "fr": "Anti-spam global : nombre maximal de commandes par minute.",
    "en": "Global anti-spam: maximum commands per minute."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import ratelimit_middleware\n\nslash.add_middleware(ratelimit_middleware(max_commands_per_minute=20))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ratelimit_middleware/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ratelimit_middleware/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/ratelimit_middleware/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/ratelimit_middleware/index.md"
   }
  },
  {
   "name": "timing_middleware",
   "kind": "function",
   "section": "slash.middleware",
   "import": "from discord_interactions.slash import timing_middleware",
   "aliases": [],
   "signature": "def timing_middleware(*, slow_threshold_ms: float = 3000, on_slow: Callable[[SlashContext, float], Awaitable[None]] | None = None) -> Middleware",
   "summary": {
    "fr": "Signale les commandes plus lentes qu'un seuil.",
    "en": "Reports commands slower than a threshold."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import timing_middleware\n\n\nasync def slow(ctx, ms):\n    print(f\"/{ctx.command_name} took {ms:.0f} ms\")\n\n\nslash.add_middleware(timing_middleware(slow_threshold_ms=1500, on_slow=slow))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/timing_middleware/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/timing_middleware/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/timing_middleware/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/timing_middleware/index.md"
   }
  },
  {
   "name": "Localization",
   "kind": "class",
   "section": "slash.localization",
   "import": "from discord_interactions import Localization",
   "aliases": [],
   "signature": "class Localization(default_locale: str = 'en-US')",
   "summary": {
    "fr": "Traductions des noms, descriptions et choix de commandes.",
    "en": "Translations for command names, descriptions and choices."
   },
   "methods": [
    "def load_from_dict(data: Dict[str, Dict[str, str]]) -> None",
    "def load_from_json(path: str | pathlib.Path) -> None",
    "def load_from_folder(folder: str | pathlib.Path) -> None",
    "def get(key: str, locale: str | None = None) -> str | TranslationSet",
    "def t(key: str, locale: str, **kwargs) -> str",
    "def localizations(key: str) -> Dict[str, str]",
    "def command(name_key: str, description_key: str) -> Dict[str, Any]",
    "def option(name_key: str, description_key: str) -> Dict[str, Any]",
    "def choice(name_key: str) -> Dict[str, Any]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import Localization\n\nloc = Localization()\nloc.load_from_dict({\n    \"en-US\": {\"ping.name\": \"ping\", \"ping.desc\": \"Check latency\"},\n    \"fr\": {\"ping.name\": \"ping\", \"ping.desc\": \"Vérifier la latence\"},\n})\n\n\n@slash.command(**loc.command(\"ping.name\", \"ping.desc\"))\nasync def ping(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Localization/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Localization/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/Localization/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/Localization/index.md"
   }
  },
  {
   "name": "LocalizedString",
   "kind": "class",
   "section": "slash.localization",
   "import": "from discord_interactions.slash import LocalizedString",
   "aliases": [],
   "signature": "class LocalizedString(default: str)",
   "summary": {
    "fr": "Chaîne traduite construite à la volée : `L(\"Bonjour\").en_US(\"Hello\")`.",
    "en": "Translated string built on the fly: `L(\"Bonjour\").en_US(\"Hello\")`."
   },
   "methods": [
    "def to_dict() -> Dict[str, str]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import LocalizedString\n\ndescription = LocalizedString(\"Bot latency\").fr(\"Latence du bot\").de(\"Bot-Latenz\")\n\n@slash.command(description=description.value, description_localizations=description.to_dict())\nasync def ping(ctx):\n    ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/LocalizedString/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/LocalizedString/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/LocalizedString/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/LocalizedString/index.md"
   }
  },
  {
   "name": "TranslationSet",
   "kind": "class",
   "section": "slash.localization",
   "import": "from discord_interactions.slash import TranslationSet",
   "aliases": [],
   "signature": "class TranslationSet(key: str, translations: Dict[str, str] = <factory>, default: str | None = None) -> None",
   "summary": {
    "fr": "Traductions d'une clé dans plusieurs langues.",
    "en": "Translations of one key in several locales."
   },
   "methods": [
    "def get(locale: str, fallback: str | None = None) -> str",
    "def to_api_dict() -> Dict[str, str]"
   ],
   "values": null,
   "example": "translations = loc.get(\"ping.desc\")  # TranslationSet (every language)\ntranslations.get(\"fr\")  # \"Latence du bot\"\ntranslations.get(\"fr-CA\")  # \"Latence du bot\" (falls back to \"fr\")\ntranslations.to_api_dict()  # {\"en-US\": \"...\", \"fr\": \"...\"} for the API",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/TranslationSet/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/TranslationSet/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/TranslationSet/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/TranslationSet/index.md"
   }
  },
  {
   "name": "create_common_localization",
   "kind": "function",
   "section": "slash.localization",
   "import": "from discord_interactions.slash import create_common_localization",
   "aliases": [],
   "signature": "def create_common_localization() -> Localization",
   "summary": {
    "fr": "`Localization` préremplie avec les traductions courantes.",
    "en": "`Localization` pre-filled with the common translations."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import create_common_localization\n\n# Common error messages, already translated (en, fr, de, es)\nloc = create_common_localization()\ntext = loc.t(\"errors.cooldown\", \"en-US\", seconds=12)\n# \"This command is on cooldown. Please wait 12.0 seconds.\"",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_common_localization/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_common_localization/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/create_common_localization/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/create_common_localization/index.md"
   }
  },
  {
   "name": "L",
   "kind": "function",
   "section": "slash.localization",
   "import": "from discord_interactions import L",
   "aliases": [],
   "signature": "def L(default: str) -> LocalizedString",
   "summary": {
    "fr": "Raccourci de `LocalizedString`.",
    "en": "Shortcut for `LocalizedString`."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import L\n\ndescription = L(\"Check latency\").fr(\"Vérifier la latence\").de(\"Latenz prüfen\")\n\n\n@slash.command(description=description.value, description_localizations=description.to_dict())\nasync def ping(ctx): ...",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/L/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/L/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/L/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/L/index.md"
   }
  },
  {
   "name": "CommandSync",
   "kind": "class",
   "section": "slash.sync",
   "import": "from discord_interactions.slash import CommandSync",
   "aliases": [],
   "signature": "class CommandSync(client: discord.Client)",
   "summary": {
    "fr": "Synchronisation fine : lecture, création, mise à jour et suppression ciblées des commandes.",
    "en": "Fine-grained sync: targeted read, create, update and delete of commands."
   },
   "methods": [
    "async def get_global_commands() -> List[Dict[str, Any]]",
    "async def get_guild_commands(guild_id: int) -> List[Dict[str, Any]]",
    "async def bulk_overwrite_global(commands: List[Dict[str, Any]]) -> List[Dict[str, Any]]",
    "async def bulk_overwrite_guild(guild_id: int, commands: List[Dict[str, Any]]) -> List[Dict[str, Any]]",
    "async def create_global_command(command: Dict[str, Any]) -> Dict[str, Any]",
    "async def update_global_command(command_id: int, command: Dict[str, Any]) -> Dict[str, Any]",
    "async def delete_global_command(command_id: int) -> None",
    "async def create_guild_command(guild_id: int, command: Dict[str, Any]) -> Dict[str, Any]",
    "async def update_guild_command(guild_id: int, command_id: int, command: Dict[str, Any]) -> Dict[str, Any]",
    "async def delete_guild_command(guild_id: int, command_id: int) -> None",
    "async def sync_global(commands: List[Dict[str, Any]], mode: SyncMode = SyncMode.FULL) -> SyncResult",
    "async def sync_guild(guild_id: int, commands: List[Dict[str, Any]], mode: SyncMode = SyncMode.FULL) -> SyncResult",
    "async def sync_tree(manager: SlashCommandManager, guilds: List[int] | None = None, mode: SyncMode = SyncMode.FULL) -> Dict[int | None, SyncResult]"
   ],
   "values": null,
   "example": "from discord_interactions.slash import CommandSync, SyncMode\n\n# Manual sync (SlashManager(client, auto_sync=False))\n@client.event\nasync def on_ready():\n    sync = CommandSync(client)\n    results = await sync.sync_tree(slash, guilds=[123456789012345678], mode=SyncMode.SMART)\n    for guild, result in results.items():\n        print(guild, result.created, \"created\", result.updated, \"updated\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandSync/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandSync/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandSync/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandSync/index.md"
   }
  },
  {
   "name": "SyncResult",
   "kind": "class",
   "section": "slash.sync",
   "import": "from discord_interactions.slash import SyncResult",
   "aliases": [],
   "signature": "class SyncResult(synced: int = 0, created: int = 0, updated: int = 0, deleted: int = 0, errors: List[str] = None) -> None",
   "summary": {
    "fr": "Bilan d'une synchronisation : créées, mises à jour, supprimées, erreurs.",
    "en": "Sync report: created, updated, deleted, errors."
   },
   "methods": [],
   "values": null,
   "example": "result = await CommandSync(client).sync_global(slash.build_payload())\nif result.success:\n    print(f\"{result.synced} commands synced\")\nelse:\n    print(\"Errors:\", result.errors)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SyncResult/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SyncResult/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SyncResult/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SyncResult/index.md"
   }
  },
  {
   "name": "SyncMode",
   "kind": "enum",
   "section": "slash.sync",
   "import": "from discord_interactions.slash import SyncMode",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Stratégies de synchronisation.",
    "en": "Sync strategies."
   },
   "methods": [],
   "values": {
    "FULL": "'full'",
    "SMART": "'smart'",
    "APPEND": "'append'"
   },
   "example": "from discord_interactions.slash import SyncMode\n\nSyncMode.FULL  # replaces everything: commands missing from the code are deleted\nSyncMode.SMART  # only sends what changed\nSyncMode.APPEND  # adds and updates, never deletes",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SyncMode/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SyncMode/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SyncMode/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SyncMode/index.md"
   }
  },
  {
   "name": "AutocompleteError",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import AutocompleteError",
   "aliases": [],
   "signature": "def AutocompleteError(option_name: str, reason: str)",
   "summary": {
    "fr": "Échec d'une autocomplétion.",
    "en": "An autocomplete failed."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import AutocompleteError\n\nasync def cities(ctx):\n    # An exception in autocomplete is written to the logs;\n    # the user simply sees an empty list.\n    if len(ctx.value) > 50:\n        raise AutocompleteError(\"city\", \"Search too long\")\n    return await search_cities(ctx.value)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AutocompleteError/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AutocompleteError/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/AutocompleteError/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/AutocompleteError/index.md"
   }
  },
  {
   "name": "BotMissingPermissions",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import BotMissingPermissions",
   "aliases": [],
   "signature": "def BotMissingPermissions(missing: List[str], command_name: str)",
   "summary": {
    "fr": "Permissions manquantes pour le bot.",
    "en": "Missing bot permissions."
   },
   "methods": [],
   "values": null,
   "example": "@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, BotMissingPermissions):\n        await ctx.respond(\"Please give me: \" + \", \".join(error.missing_permissions), ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/BotMissingPermissions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/BotMissingPermissions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/BotMissingPermissions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/BotMissingPermissions/index.md"
   }
  },
  {
   "name": "CheckFailure",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import CheckFailure",
   "aliases": [],
   "signature": "def CheckFailure(check_name: str, message: str | None = None)",
   "summary": {
    "fr": "Une vérification `@check` a échoué.",
    "en": "A `@check` failed."
   },
   "methods": [],
   "values": null,
   "example": "@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, CheckFailure):\n        await ctx.respond(error.message, ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CheckFailure/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CheckFailure/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CheckFailure/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CheckFailure/index.md"
   }
  },
  {
   "name": "CommandDisabled",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import CommandDisabled",
   "aliases": [],
   "signature": "def CommandDisabled(command_name: str, reason: str | None = None)",
   "summary": {
    "fr": "Commande désactivée.",
    "en": "Command disabled."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import CommandDisabled\n\n@slash.command(description=\"Casino\")\nasync def casino(ctx):\n    if not casino_open:\n        raise CommandDisabled(\"casino\", \"The casino is closed for the night.\")",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandDisabled/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandDisabled/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandDisabled/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandDisabled/index.md"
   }
  },
  {
   "name": "CommandNotFound",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import CommandNotFound",
   "aliases": [],
   "signature": "def CommandNotFound(command_name: str)",
   "summary": {
    "fr": "Commande inconnue.",
    "en": "Unknown command."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import CommandNotFound\n\n# The module never raises it itself: use it in your own dispatching\nasync def run(name, ctx):\n    command = slash.get_command(name)\n    if command is None:\n        raise CommandNotFound(name)\n    await command.invoke(ctx)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandNotFound/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandNotFound/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandNotFound/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandNotFound/index.md"
   }
  },
  {
   "name": "CommandOnCooldown",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions import CommandOnCooldown",
   "aliases": [],
   "signature": "def CommandOnCooldown(cooldown_type: str, retry_after: float, command_name: str)",
   "summary": {
    "fr": "Commande en cooldown ; `retry_after` donne l'attente en secondes.",
    "en": "Command on cooldown; `retry_after` gives the wait in seconds."
   },
   "methods": [],
   "values": null,
   "example": "@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, CommandOnCooldown):\n        await ctx.respond(f\"Try again in {error.retry_after:.0f} s.\", ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandOnCooldown/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandOnCooldown/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/CommandOnCooldown/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/CommandOnCooldown/index.md"
   }
  },
  {
   "name": "InvalidOption",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import InvalidOption",
   "aliases": [],
   "signature": "def InvalidOption(option_name: str, reason: str)",
   "summary": {
    "fr": "Valeur d'option refusée par la validation.",
    "en": "Option value rejected by validation."
   },
   "methods": [],
   "values": null,
   "example": "@slash.command(description=\"Profile color\")\n@option(String(\"hex\", \"Color\", validator=lambda v: v.startswith(\"#\") or \"Must start with #\"))\nasync def color(ctx, hex): ...\n\n# \"red\" raises InvalidOption: \"Invalid value for 'hex': Must start with #\"",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/InvalidOption/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/InvalidOption/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/InvalidOption/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/InvalidOption/index.md"
   }
  },
  {
   "name": "MaxConcurrency",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import MaxConcurrency",
   "aliases": [],
   "signature": "def MaxConcurrency(command_name: str, max_concurrent: int, per: str)",
   "summary": {
    "fr": "Trop d'exécutions simultanées.",
    "en": "Too many simultaneous runs."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import MaxConcurrency\n\nrunning = set()\n\n@slash.command(description=\"Generate an image\")\nasync def generate(ctx):\n    if ctx.user.id in running:\n        raise MaxConcurrency(\"generate\", 1, \"user\")  # one generation at a time\n    running.add(ctx.user.id)\n    try:\n        ...\n    finally:\n        running.discard(ctx.user.id)",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MaxConcurrency/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MaxConcurrency/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MaxConcurrency/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MaxConcurrency/index.md"
   }
  },
  {
   "name": "MiddlewareError",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import MiddlewareError",
   "aliases": [],
   "signature": "def MiddlewareError(middleware_name: str, reason: str)",
   "summary": {
    "fr": "Échec d'un middleware.",
    "en": "A middleware failed."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import Middleware, MiddlewareError\n\nasync def check_account(ctx):\n    if not await account_exists(ctx.user.id):\n        raise MiddlewareError(\"account\", \"Create your account first with /signup.\")\n    return True\n\nslash.add_middleware(Middleware(\"account\", before=check_account))",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MiddlewareError/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MiddlewareError/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MiddlewareError/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MiddlewareError/index.md"
   }
  },
  {
   "name": "MissingPermissions",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import MissingPermissions",
   "aliases": [],
   "signature": "def MissingPermissions(missing: List[str], command_name: str)",
   "summary": {
    "fr": "Permissions manquantes pour l'utilisateur.",
    "en": "Missing user permissions."
   },
   "methods": [],
   "values": null,
   "example": "@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, MissingPermissions):\n        await ctx.respond(\"You are missing: \" + \", \".join(error.missing_permissions), ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MissingPermissions/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MissingPermissions/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/MissingPermissions/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/MissingPermissions/index.md"
   }
  },
  {
   "name": "NotInGuild",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import NotInGuild",
   "aliases": [],
   "signature": "def NotInGuild(command_name: str)",
   "summary": {
    "fr": "Commande réservée aux serveurs.",
    "en": "Command restricted to guilds."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import NotInGuild\n\n@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, NotInGuild):\n        await ctx.respond(\"Use this command in a server.\", ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NotInGuild/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NotInGuild/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NotInGuild/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NotInGuild/index.md"
   }
  },
  {
   "name": "NotOwner",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import NotOwner",
   "aliases": [],
   "signature": "def NotOwner()",
   "summary": {
    "fr": "Commande réservée aux propriétaires.",
    "en": "Command restricted to owners."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import NotOwner\n\n@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, NotOwner):\n        await ctx.respond(\"This command is reserved for the bot owner.\", ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NotOwner/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NotOwner/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NotOwner/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NotOwner/index.md"
   }
  },
  {
   "name": "NSFWChannelRequired",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions.slash import NSFWChannelRequired",
   "aliases": [],
   "signature": "def NSFWChannelRequired(command_name: str)",
   "summary": {
    "fr": "Commande réservée aux salons NSFW.",
    "en": "Command restricted to NSFW channels."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import NSFWChannelRequired\n\n@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, NSFWChannelRequired):\n        await ctx.respond(\"Only in an NSFW channel.\", ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NSFWChannelRequired/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NSFWChannelRequired/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/NSFWChannelRequired/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/NSFWChannelRequired/index.md"
   }
  },
  {
   "name": "SlashCommandError",
   "kind": "exception",
   "section": "slash.errors",
   "import": "from discord_interactions import SlashCommandError",
   "aliases": [],
   "signature": "def SlashCommandError()",
   "summary": {
    "fr": "Base de toutes les erreurs de commande slash.",
    "en": "Base of every slash command error."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import SlashCommandError\n\n\n@slash.on_error\nasync def errors(ctx, error):\n    if isinstance(error, SlashCommandError):  # every error raised by the module\n        await ctx.respond(str(error), ephemeral=True)\n        return True\n    return False",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashCommandError/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashCommandError/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/SlashCommandError/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/SlashCommandError/index.md"
   }
  },
  {
   "name": "COMMON_TRANSLATIONS",
   "kind": "data",
   "section": "other",
   "import": "from discord_interactions.slash import COMMON_TRANSLATIONS",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Traductions courantes prêtes à l'emploi.",
    "en": "Common ready-made translations."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import COMMON_TRANSLATIONS\n\nprint(COMMON_TRANSLATIONS[\"en-US\"][\"errors.guild_only\"])\n# \"This command can only be used in a server.\"",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/COMMON_TRANSLATIONS/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/COMMON_TRANSLATIONS/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/COMMON_TRANSLATIONS/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/COMMON_TRANSLATIONS/index.md"
   }
  },
  {
   "name": "LOCALES",
   "kind": "data",
   "section": "other",
   "import": "from discord_interactions.slash import LOCALES",
   "aliases": [],
   "signature": null,
   "summary": {
    "fr": "Codes de langue reconnus par Discord.",
    "en": "Locale codes supported by Discord."
   },
   "methods": [],
   "values": null,
   "example": "from discord_interactions.slash import LOCALES\n\n# Language codes accepted by Discord\n\"fr\" in LOCALES  # True\n\"fr-FR\" in LOCALES  # False: Discord uses \"fr\"",
   "url": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/LOCALES/",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/LOCALES/"
   },
   "markdown": {
    "fr": "https://discordpy.levraiberet.ovh/docs/fr/0.3.0/api/LOCALES/index.md",
    "en": "https://discordpy.levraiberet.ovh/docs/en/0.3.0/api/LOCALES/index.md"
   }
  }
 ]
}
