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.11.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for discord_surveys-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee2b44b393b414a0345c48aad2c5d33f27ee1744cbcdf641a02fe244bc26c0f |
|
MD5 | 4aa75e0a76517afa8d68087c2822a06f |
|
BLAKE2b-256 | 6909f4ba48b20945a8cd64ff0e88cf158729885ebaf5160655aa7d336ec57e5e |