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

Configure Feed

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

fix default updating lb struct

Luna d72c12d7 d36a8f2d

+16 -1
+15
app/dashboard/[guildId]/leaderboards/page.tsx
··· 8 8 import { webStore } from "@/common/webstore"; 9 9 import Betweener from "@/components/Betweener"; 10 10 import ImageUrlInput from "@/components/inputs/ImageUrlInput"; 11 + import MultiSelectMenu from "@/components/inputs/MultiSelectMenu"; 11 12 import TextInput from "@/components/inputs/TextInput"; 12 13 import { ScreenMessage } from "@/components/screen-message"; 13 14 import { ApiV1GuildsModulesLeaderboardGetResponse, RouteErrorResponse } from "@/typings"; ··· 133 134 description="Enter a url which should be the banner of the leaderboard web page. The recomended image ration is 4:1 and recommended resolution 1024x256px." 134 135 defaultState={leaderboard.banner || ""} 135 136 /> 137 + 138 + <div className="lg:flex gap-3"> 139 + <div className="lg:w-1/2"> 140 + <MultiSelectMenu 141 + name="Blacklisted Channels" 142 + url={`/guilds/${guild?.id}/modules/leaderboard`} 143 + dataName="blacklistChannelIds" 144 + items={guild?.channels?.sort((a, b) => a.name.localeCompare(b.name)).map((c) => { return { name: `#${c.name}`, value: c.id }; })} 145 + description="Select channels which should not be able to be counted." 146 + defaultState={leaderboard?.blacklistChannelIds || []} 147 + max={500} 148 + /> 149 + </div> 150 + </div> 136 151 137 152 <hr className="my-6 dark:border-wamellow-light border-wamellow-100-light" /> 138 153
+1 -1
app/dashboard/[guildId]/leaderboards/updating.component.tsx
··· 158 158 aria-label="Display format" 159 159 color="secondary" 160 160 variant="bordered" 161 - defaultSelectedKey={structure} 161 + defaultSelectedKey={structure?.toString()} 162 162 onSelectionChange={(i) => setStructure(parseInt(i as string))} 163 163 fullWidth 164 164 >