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.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for discord_surveys-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dea03d506a7844bc51b037b31dbd4132d0f8ccc69d641fd6c3656edc938f0d2 |
|
MD5 | 466992fa36cf936942326d28dfc1d31f |
|
BLAKE2b-256 | d99a4ad0a99d73abe64cad356915764473e83a3a46b7d7f7c161aaa1fe61470c |