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

Method check

src/commands/Admin/conf.js:56–60  ·  view source on GitHub ↗
(message, key, { errors, updated })

Source from the content-addressed store, hash-verified

54 }
55
56 check(message, key, { errors, updated }) {
57 if (errors.length) throw String(errors[0]);
58 if (!updated.length) throw message.language.get('COMMAND_CONF_NOCHANGE', key);
59 return updated[0].entry;
60 }
61
62 getPath(key) {
63 const { schema } = this.client.gateways.get('guilds');

Callers 3

setMethod · 0.45
removeMethod · 0.45
resetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected