How to use the disputils.confirmation.Confirmation function in disputils

To help you get started, we’ve selected a few disputils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiBa001 / disputils / disputils / View on Github external
check=lambda r, u: ( == and ( == and (r.emoji in self.emojis),
        except asyncio.TimeoutError:
            self._confirmed = None
            await msg.clear_reactions()

        confirmed = self.emojis[reaction.emoji]

        self._confirmed = confirmed
        return confirmed

class BotConfirmation(Confirmation):
    def __init__(self, ctx: commands.Context, color: hex = 0x000000, message: discord.Message = None):
        self._ctx = ctx

        super().__init__(, color, message)

    async def confirm(self, text: str, user: discord.User = None, channel: discord.TextChannel = None) \
            -> bool or None:

        if user is None:
            user =

        if self.message is None and channel is None:
            channel =

        return await super().confirm(text, user, channel)


Some utilities for Making Discord bot development easier.

Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages