grom/modification
Types
Sometimes, you’ll find yourself passing this type into a modify function.
This is because Gleam really has no way of determining whether to skip something, leaving it unchanged
or to send null, deleting that object from Discord’s databases.
pub type Modification(a) {
New(a)
Delete
Skip
}
Constructors
-
New(a)Will send
a. -
DeleteWill send
null. -
SkipWill not send anything.