Skip to content

createPrivacyCommand

createPrivacyCommand(lens, options?): PrivacyCommand

Defined in: packages/discordjs/src/privacy-command.ts:31

A ready-made /privacy command: info explains what is collected, optout and optin stop and resume collection for the user, erase deletes what forgetUser() can reach of them and opts them out. Replies are ephemeral. Opt-outs live in memory: persist them with onOptOutChange and pass them back with optedOut.

Shardlens

PrivacyCommandOptions = {}

PrivacyCommand