ExtPhishingBuilder

Builder used to configure the phishing extension.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Set of bad domains, used as well as the usual unsafe domains.

Link copied to clipboard

What to do when a message creation/edit contains an unsafe domain.

Link copied to clipboard

The name of the logs channel to use for detection messages, if not "logs".

Link copied to clipboard

Whether to DM users when their messages contain unsafe domains, with the action taken.

Link copied to clipboard
var requiredCommandPermission: Permission?

If you want to require a permission for the check commands, supply it here. Alternatively, supply null and everyone will be given access to them.

Link copied to clipboard

Delay between domain update checks, 5 minutes at minimum.

Link copied to clipboard
var urlRegex: <Error class: unknown class>

Regular expression used to extract domains from messages.

Functions

Link copied to clipboard
fun badDomain(domain: String)

Register a bad domain.

Link copied to clipboard
fun check(check: <Error class: unknown class><Event>)

Register a check, which must pass in order for an event handler to run, and for messages to be processed.

fun check(vararg checkList: <Error class: unknown class><Event>)

Register checks, which must pass in order for an event handler to run, and for messages to be processed.

Link copied to clipboard
fun regex(pattern: String)

Convenience function for supplying a case-insensitive urlRegex.