create_ai_tone()

async Client.create_ai_tone()

Create a custom AI writing tone.

Usable by Users Bots
Parameters:
  • title (str) – The title/name of the writing tone.

  • prompt (str) – The prompt instructions describing the writing tone.

  • emoji_id (int, optional) – Custom emoji document ID representing the tone. Defaults to 0.

  • display_author (bool, optional) – Whether to display the creator’s username.

Returns:

AiComposeTone – On success, the created tone is returned.

Example

tone = await app.create_ai_tone("Pirate", "Speak like a pirate!")