utility.guildinfo: passed to wrong getGuild call
This commit is contained in:
parent
9bfd194285
commit
703a92383a
1 changed files with 2 additions and 2 deletions
|
@ -39,13 +39,13 @@ guildinfo.callback = async function (msg, line, args, {nolocal}) {
|
||||||
if (__guild) {
|
if (__guild) {
|
||||||
_guild = {source: "local", data: __guild};
|
_guild = {source: "local", data: __guild};
|
||||||
} else {
|
} else {
|
||||||
_guild = await getGuild(msg.guildID, nolocal);
|
_guild = await getGuild(msg.guildID);
|
||||||
}
|
}
|
||||||
id = msg.guildID;
|
id = msg.guildID;
|
||||||
} else {
|
} else {
|
||||||
if (!SNOWFLAKE_REGEX.test(line)) return "Not a snowflake.";
|
if (!SNOWFLAKE_REGEX.test(line)) return "Not a snowflake.";
|
||||||
const snowflake = line.match(SNOWFLAKE_REGEX)[1];
|
const snowflake = line.match(SNOWFLAKE_REGEX)[1];
|
||||||
_guild = await getGuild(snowflake);
|
_guild = await getGuild(snowflake, nolocal);
|
||||||
id = snowflake;
|
id = snowflake;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue