Skip to content

Commit

Permalink
fix: optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikaibenkai committed Jan 30, 2024
1 parent 6e9666e commit 562fca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class Bot {
* @returns 机器人自身信息
*/
public async getMe(options?: GetMeOptions) {
if (!options.forced && this.cachedBotInfo)
if (!options?.forced && this.cachedBotInfo)
return this.cachedBotInfo
const ret = await wrapResponse<User>(this.request('/getMe', undefined, {
method: 'GET',
Expand Down

0 comments on commit 562fca9

Please sign in to comment.