Skip to main content

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

Project description

discord-surveys

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

Examples

Discord

Example

Example

Python

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()

Description

Attributes Description
bot discord.Bot or discord.AutoShardedBot
ctx discord_slash.context.SlashContext
embed discord.Embed
options str and then converted to SurveyOption.
timeout (Optional) int

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.8.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

discord_surveys-1.0.8-py3-none-any.whl (4.8 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