A survey object that utilizes discord.py and discord-interactions.
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()
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 |