The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: assign premium to unmanageable servers (#59)

* feat: assign premium to unmanageable servers

* feat: add manageable to guild type

authored by

Luna Seemann and committed by
GitHub
f1520d31 d8b4ddf9

+8 -1
+7 -1
app/profile/page.tsx
··· 38 38 const { isLoading, data, error, dataUpdatedAt } = useApi<ApiV1UsersMeGuildsGetResponse[]>("/users/@me/guilds"); 39 39 40 40 const guilds = useMemo( 41 - () => Array.isArray(data) ? data.sort(sort).filter((guild) => filter(guild, search)).slice(0, MAX_GUILDS) : [], 41 + () => Array.isArray(data) 42 + ? data 43 + .sort(sort) 44 + .filter((guild) => filter(guild, search)) 45 + .slice(0, MAX_GUILDS) 46 + : [], 42 47 [data, search] 43 48 ); 44 49 ··· 129 134 } 130 135 131 136 function filter(guild: ApiV1UsersMeGuildsGetResponse, search: string) { 137 + if ("manageable" in guild && !guild.manageable) return false; 132 138 if (!search) return true; 133 139 134 140 if (guild.name?.toLowerCase().includes(search.toLowerCase())) return true;
+1
typings.ts
··· 22 22 name: string; 23 23 icon: string | null; 24 24 bot: boolean; 25 + manageable?: boolean; 25 26 } 26 27 27 28 export enum GuildFlags {