frontend.src.poll_commands.MakerCommands
¶
Contains the cog implementation for creating a new poll.
Module Contents¶
Classes¶
Class that represents the cog for handling the /makepoll command for the bot. |
- class frontend.src.poll_commands.MakerCommands.MakerCommands(bot: discord.Bot)¶
Bases:
discord.ext.commands.Cog
Class that represents the cog for handling the /makepoll command for the bot.
- Args:
bot: The Discord bot to link the cog to
- ctx_parse¶
- async make_poll(ctx: ctx_parse, poll_name: str)¶
Function to handle the input of the /makepoll command from the user.
- Args:
ctx: The Discord application context for the bot to send messages with. poll_name: The name of the poll you want to create