ValidationContext
Class representing the context for an argument validator. This allows the storage of validation steps and a message for the user.
Properties
Functions
Check asserting an Event was fired within a guild.
Check asserting that the channel an Event fired in is above the given channel in the channel list.
Check asserting that the channel an Event fired in is below the given channel in the channel list.
Check asserting that the channel an Event fired in is above the given channel in the channel list.
Check asserting that the channel an Event fired in is marked as NSFW.
Check asserting that the channel an Event fired in is below the given channel in the channel list.
Check asserting that the channel an Event fired in is marked as NSFW, or is in an NSFW guild.
Check asserting that the channel an Event fired in is of a given set of types.
Get a pre-translation Key representing the current check failure message, if the check has failed, and a message was set.
Get the translated check failure message, if the check has failed and a message was set.
Check asserting an Event was fired within a guild with a NSFW level higher than the provided one..
Check asserting an Event was fired within a guild with a NSFW level higher than or equal to the provided one..
Check asserting an Event was fired within a guild with a NSFW level lower than the provided one..
Check asserting an Event was fired within a guild with a NSFW level lower than or equal to the provided one..
Check asserting an Event was fired within a guild with the given NSFW level.
Check asserting that the user an Event fired for has a given permission, or the Administrator permission.
Check asserting that the user an Event fired for has the given permissions set, or the Administrator permission.
Check asserting that the user an Event fired for has a given role.
Check asserting that an Event fired within a given channel category.
Check asserting that an Event fired within a given channel.
Check asserting that the guild an Event fired for is in a specific guild.
Check asserting that an Event fired within a given channel. If the event fired within a thread, it checks the thread's parent channel instead.
Check asserting the user for an Event is a bot. Will fail if the event doesn't concern a user.
For bots owned by a team, check asserting the user for an Event is one of the bot's admins.
For bots with single owners, check asserting the user for an Event is the bot's owner.
Check asserting that the event was triggered within a thread.
Check asserting the user for an Event is not a bot. Will pass if the event doesn't concern a user.
For bots owned by a team, check asserting the user for an Event is not one of the bot's admins.
For bots with single owners, check asserting the user for an Event is not the bot's owner.
Check asserting that the event was not triggered within a thread, including events that don't concern any specific channel.
Check asserting an Event was not fired within a guild.
Check asserting that the channel an Event fired in is not marked as NSFW.
Check asserting that the channel an Event fired in is not marked as NSFW, and is not in an NSFW guild.
Check asserting that the channel an Event fired in is not of a given set of types.
Check asserting an Event was fired within a guild without the given NSFW level.
Check asserting that the user an Event fired for does not have a given permission or the Administrator permission.
Check asserting that the user an Event fired for does not have the given permissions set or the Administrator permission.
Check asserting that the user an Event fired for does not have a given role.
Check asserting that an Event did not fire within a given channel category.
Check asserting that an Event did not fire within a given channel.
Check asserting that the guild an Event fired for is not in a specific guild.
Check asserting that an Event did not fire within a given channel. If the event fired within a thread, it checks the thread's parent channel instead.
Silence the current check by removing any message it may have set.
If this validator has failed, throw a DiscordRelayedException with the translated message, if any.
If this check has failed and a message is set, throw a DiscordRelayedException with the translated message.
Check asserting that the top role for the user an Event fired for is equal to a given role.
Check asserting that the top role for the user an Event fired for is higher than a given role.
Check asserting that the top role for the user an Event fired for is higher than or equal to a given
Check asserting that the top role for the user an Event fired for is lower than a given role.
Check asserting that the top role for the user an Event fired for is lower than or equal to a given
Check asserting that the top role for the user an Event fired for is not equal to a given role.