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.

Files for discord-surveys, version 1.0.11
Filename, size File type Python version Upload date Hashes
Filename, size discord_surveys-1.0.11.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View
Filename, size discord_surveys-1.0.11-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page