Skip to content

Commit

Permalink
fix(errors): handle requestGuildMembers
Browse files Browse the repository at this point in the history
  • Loading branch information
yuimarudev committed Feb 16, 2024
1 parent 51112ba commit 0401e0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers/guildCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import { client } from "../index.js";
export default async ({
data,
}: WithIntrinsicProps<GatewayGuildCreateDispatchData>) => {
client.requestGuildMembers({ guild_id: data.id, query: "", limit: 0 });
client
.requestGuildMembers({ guild_id: data.id, query: "", limit: 0 })
.catch((x) => void x);

for (const member of data.members) {
if (!member.user) continue;
Expand Down

0 comments on commit 0401e0f

Please sign in to comment.