Skip to content

A survey object that utilizes discord.py and discord-interactions.

License

Notifications You must be signed in to change notification settings

refekt/discord-surveys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-surveys

A survey object that utilizes discord.py and discord-interactions.

Examples

Discord

Example

Example

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

About

A survey object that utilizes discord.py and discord-interactions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages