MCPcopy Create free account
hub / github.com/RTByte/rtbyte / reset

Method reset

src/commands/User/userconf.js:48–51  ·  view source on GitHub ↗
(message, [key])

Source from the content-addressed store, hash-verified

46 }
47
48 async reset(message, [key]) {
49 const status = await message.author.settings.reset(key, true);
50 return this.check(message, key, status) || message.sendLocale('COMMAND_CONF_RESET', [key, message.author.settings.resolveString(message, status.updated[0].piece)]);
51 }
52
53 check(message, key, { errors, updated }) {
54 if (errors.length) return message.sendMessage(errors[0]);

Callers

nothing calls this directly

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected