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
Built Distribution
File details
Details for the file discord_surveys-1.0.11.tar.gz
.
File metadata
- Download URL: discord_surveys-1.0.11.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eae44a2dd637bc1e274fcd4aade73b1a6300f5eb89acf5e7f42ef98518cbb519 |
|
MD5 | c972424a9fc72044585ab2594d298b72 |
|
BLAKE2b-256 | 75475e3fe9769f014a1392707b641bd8feca2b681fbf7290560fa245ebe326de |
File details
Details for the file discord_surveys-1.0.11-py3-none-any.whl
.
File metadata
- Download URL: discord_surveys-1.0.11-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee2b44b393b414a0345c48aad2c5d33f27ee1744cbcdf641a02fe244bc26c0f |
|
MD5 | 4aa75e0a76517afa8d68087c2822a06f |
|
BLAKE2b-256 | 6909f4ba48b20945a8cd64ff0e88cf158729885ebaf5160655aa7d336ec57e5e |