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.7.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for discord_surveys-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83a049067b7512f64421bc6789b250a2d6e26524b4c2304275a89e0429152b99 |
|
MD5 | 3347c49dd2c11f4be31661c66dc85d6e |
|
BLAKE2b-256 | 47508771191a5b06571eb6fdf0bc5e9ebde793cf20cbdd7da8461b58066c3762 |