Skip to main content

A survey object that utilizes discord.py and discord-interactions.

Project description

SlashSurveys

A survey object that utilizes discord.py and discord-interactions.

Usage

bot -> discord.Bot or discord.AutoShardedBot

ctx -> discord_slash.context.SlashContext

embed -> discord.Embed

options -> str and then converted to SurveyOption

timeout -> int

from discord_surveys import Survey

async def survey(self, ctx: SlashContext, question: str, options: str):
    await Survey(
        bot=ctx.bot,
        ctx=ctx,
        question=question,
        options=options
    ).send()

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-surveys-1.0.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

discord_surveys-1.0.0-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

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