Getting started

Here’s basic bot code

 1from quant import Client, InteractionContext, SlashCommand
 2
 3client = Client(token="Bot <YOUR TOKEN HERE>")
 4
 5
 6async def slash_command_callback(context: InteractionContext) -> None:
 7    await context.interaction.respond(content="Pong!")
 8
 9if __name__ == "__main__":
10    ping_command = SlashCommand(
11        name="ping",
12        description="Based ping command"
13    )
14    ping_command.set_callback(slash_command_callback)
15    client.add_slash_command(ping_command)
16
17    client.run()
18    # or
19    client.run_autoshard()
20    # or
21    client.run_with_shards(5)

Quant designed to simplify your experience with Discord API.

If you have some issues or problems you can get help in support server