Skip to main content

No project description provided

Project description


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']

discord = Discord()

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

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


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord-interactions-flask-0.1.1.tar.gz (16.7 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page