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
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for discord_surveys-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d92443f7331694658b80ea45aa749f2d98ceb3fb27639da37fa4c307067dbb8e |
|
MD5 | a747eeddbe3099334b3f8f35e89295dd |
|
BLAKE2b-256 | 6c02160f4df72539136667981d954b8a67f1454978290b16ccdd9ee95293d7cd |