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.5.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for discord_surveys-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbb54eb6eec57f259e71e4c9bf7c87e47629aa967f59bfa3d4a337adc66d839e |
|
MD5 | beaf0d2d2cd7e834406ca180f407c73b |
|
BLAKE2b-256 | f686a7179793991224b2ac725754da77866dd1de2308b895b70348dc5d97963c |