Skip to content

Commit 9e08fb8

Browse files
committed
fix(discord): match get_user output nullability to the User object
1 parent a2d4a83 commit 9e08fb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/tools/discord/get_user.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ export const discordGetUserTool: ToolConfig<DiscordGetUserParams, DiscordGetUser
7070
global_name: {
7171
type: 'string',
7272
description: 'User display name, if set',
73-
optional: true,
7473
nullable: true,
7574
},
76-
avatar: { type: 'string', description: 'User avatar hash', optional: true, nullable: true },
75+
avatar: { type: 'string', description: 'User avatar hash', nullable: true },
7776
bot: { type: 'boolean', description: 'Whether user is a bot' },
7877
system: { type: 'boolean', description: 'Whether user is a system user' },
7978
email: {
8079
type: 'string',
8180
description: 'User email. Not returned for a user looked up by ID',
8281
optional: true,
82+
nullable: true,
8383
},
8484
verified: {
8585
type: 'boolean',

0 commit comments

Comments
 (0)