MCPcopy Create free account
hub / github.com/AnswerOverflow/AnswerOverflow / toAOServer

Function toAOServer

apps/discord-bot/src/utils/conversions.ts:173–183  ·  view source on GitHub ↗
(guild: Guild)

Source from the content-addressed store, hash-verified

171}
172
173export function toAOServer(guild: Guild) {
174 return getDefaultServer({
175 id: guild.id,
176 name: guild.name,
177 icon: guild.icon,
178 description: guild.description,
179 vanityInviteCode: guild.vanityURLCode,
180 approximateMemberCount:
181 getMemberCount(guild) > 0 ? getMemberCount(guild) : undefined,
182 });
183}
184
185export function toAOChannel(
186 channel: GuildChannel | GuildBasedChannel,

Callers 3

autoUpdateServerInfoFunction · 0.90
runMethod · 0.90
toAOChannelWithServerFunction · 0.85

Calls 2

getDefaultServerFunction · 0.90
getMemberCountFunction · 0.85

Tested by

no test coverage detected