Skip to content

Commit

Permalink
Update lib/routes/discord/search.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Tony <[email protected]>
  • Loading branch information
NekoAria and TonyRL authored Nov 11, 2024
1 parent 34dd2b1 commit b838e57
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/routes/discord/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ export const route: Route = {
};

const parseSearchParams = (routeParams?: string): SearchGuildMessagesParams => {
if (!routeParams) {
return {};
}

const parsed = new URLSearchParams(routeParams);
const hasTypes = parsed.get('has')?.split(',').filter(Boolean);
const validHasTypes = hasTypes?.filter((type) => VALID_HAS_TYPES.has(type as HasType)) as HasType[];
Expand Down

0 comments on commit b838e57

Please sign in to comment.