Put member name in code block in lookup error message
This commit is contained in:
parent
483611702e
commit
63cdb43496
@ -160,7 +160,7 @@ namespace PluralKit.Bot
|
|||||||
// do a standard by-hid search.
|
// do a standard by-hid search.
|
||||||
var foundByHid = await members.GetByHid(input);
|
var foundByHid = await members.GetByHid(input);
|
||||||
if (foundByHid != null) return TypeReaderResult.FromSuccess(foundByHid);
|
if (foundByHid != null) return TypeReaderResult.FromSuccess(foundByHid);
|
||||||
return TypeReaderResult.FromError(CommandError.ObjectNotFound, $"Member '{input}' not found.");
|
return TypeReaderResult.FromError(CommandError.ObjectNotFound, $"Member with ID `{input}` not found.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user