mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 22:37:54 +00:00
chore: remove API v1
This commit is contained in:
parent
1e86c2d6c4
commit
7aaad288e6
29 changed files with 136 additions and 808 deletions
|
|
@ -20,7 +20,7 @@ public class FullMessage
|
|||
public PKMember? Member;
|
||||
public PKSystem? System;
|
||||
|
||||
public JObject ToJson(LookupContext ctx, APIVersion v)
|
||||
public JObject ToJson(LookupContext ctx)
|
||||
{
|
||||
var o = new JObject();
|
||||
|
||||
|
|
@ -30,8 +30,8 @@ public class FullMessage
|
|||
o.Add("sender", Message.Sender.ToString());
|
||||
o.Add("channel", Message.Channel.ToString());
|
||||
o.Add("guild", Message.Guild?.ToString());
|
||||
o.Add("system", System?.ToJson(ctx, v));
|
||||
o.Add("member", Member?.ToJson(ctx, v: v));
|
||||
o.Add("system", System?.ToJson(ctx));
|
||||
o.Add("member", Member?.ToJson(ctx));
|
||||
|
||||
return o;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue