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.10.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for discord_surveys-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a88283aa60f28bd665a7f5e4cce3f48e7ae3be53a856464fd6c082fc9cbdb80 |
|
MD5 | fa8748fcf5986da4ca641a7e20886b87 |
|
BLAKE2b-256 | 8d87c0ad681195366baaaafa6c9942d702777d965593e0f86816092d7398ab65 |