Skip to content

Commit

Permalink
fixed return problem with database
Browse files Browse the repository at this point in the history
  • Loading branch information
MasedMSD committed Oct 2, 2024
1 parent 7acbd16 commit a367a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Client {

this.bot.use(async (ctx, next) => {
const user = ctx.from;
if (!user) await next();
if (!user || user.is_bot) return await next();

const dbuser = await this.database.resolveUser(user!, true);

Expand Down

0 comments on commit a367a54

Please sign in to comment.