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.9.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for discord_surveys-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d9330f7269469209b7942743b23d5dccf1032be960b0c33dc99491a9a162627 |
|
MD5 | 63ec82a4fa60f5e535be41f2a371ea9c |
|
BLAKE2b-256 | e6648463a77547b5de372fa60941defd88da6678c8e465312ccef012a898dffb |