mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(bot): add system guild icon & guild name (#554)
This commit is contained in:
parent
d12cd481f6
commit
3045c5e307
22 changed files with 337 additions and 28 deletions
|
|
@ -27,7 +27,7 @@ public class SystemControllerV2: PKControllerBase
|
|||
if (system == null)
|
||||
throw Errors.SystemNotFound;
|
||||
|
||||
return Ok(APIJsonExt.EmbedJson(system.Name ?? $"System with ID `{system.Hid}`", "System"));
|
||||
return Ok(APIJsonExt.EmbedJson(system.NameFor(ContextFor(system)) ?? $"System with ID `{system.Hid}`", "System"));
|
||||
}
|
||||
|
||||
[HttpPatch("{systemRef}")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue