Skip to main content

discord-interactions-flask

A Flask extension to support interacting with Discord Interactions.

Check out the quickstart or the examples directory for an idea of how to use it.

import os

from flask import Flask

from discord_interactions_flask import Discord
from discord_interactions_flask import helpers
from discord_interactions_flask.interactions ChatInteraction

app = Flask(__name__)
app.config['DISCORD_PUBLIC_KEY'] = os.environ['DISCORD_PUBLIC_KEY']
app.config['DISCORD_CLIENT_ID'] = os.environ['DISCORD_CLIENT_ID']
app.config['DISCORD_CLIENT_SECRET'] = os.environ['DISCORD_CLIENT_SECRET']

discord = Discord()

@discord.command("slash-example")
def chat_command(interaction: ChatInteraction) -> types.InteractionResponse:
    return helpers.content_response("Hello, World!")

chat_command.description = "Say hello via a slash command"

discord.init_app(app)

Metadata

Release files for discord-interactions-flask 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-interactions-flask 0.2.0
File Size Uploaded Provenance
discord_interactions_flask-0.2.0.tar.gz 16.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for discord-interactions-flask 0.2.0
File Interpreter ABI Platform
discord_interactions_flask-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.9 kB

Release files / discord_interactions_flask-0.2.0.tar.gz

Download URL discord_interactions_flask-0.2.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
11fdb9330dcabf16915932b8759f2ea0f923fbb6f33c4258763785a2f6cbe09f
BLAKE2b-256 checksum
How to use checksums
f61e144b8eddc806f8e356d5cfe76e56683ae43b0822b531cb47ec14e3735f7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Release files / discord_interactions_flask-0.2.0-py3-none-any.whl

Download URL discord_interactions_flask-0.2.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50ddb5d4c0659e1b2fc7a72c6763e6d61f0ecc04c63a98513ead00abeecf0d90
BLAKE2b-256 checksum
How to use checksums
02118f2521514196b1c8170d42e93eb7c33f70597899e45dbfa2c114fb280dbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Security for discord-interactions-flask 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page