(
opts: DiscordApiCallOpts & { server: DiscordAPIServerSchema },
)
| 650 | } |
| 651 | |
| 652 | export async function addServerToUserServerCache( |
| 653 | opts: DiscordApiCallOpts & { server: DiscordAPIServerSchema }, |
| 654 | ) { |
| 655 | const cachedServers = await getUserServers(opts); |
| 656 | if (cachedServers) { |
| 657 | await updateUserServersCache(opts.accessToken, [ |
| 658 | ...cachedServers, |
| 659 | opts.server, |
| 660 | ]); |
| 661 | } |
| 662 | } |
| 663 | |
| 664 | /* |
| 665 | * Discord User |
nothing calls this directly
no test coverage detected