fix(channel): sync a cleared group DM name without a reload (#2882)

This commit is contained in:
Hampus
2026-09-21 15:34:18 +02:00
committed by GitHub
parent c7ec2a0f58
commit 7601bf98ee
5 changed files with 68 additions and 6 deletions
@@ -50,7 +50,7 @@ export type CallEligibilityResponse = z.infer<typeof CallEligibilityResponse>;
export const ChannelResponse = z.object({
id: SnowflakeStringType.describe('The unique identifier (snowflake) for this channel'),
guild_id: SnowflakeStringType.optional().describe('The ID of the guild this channel belongs to'),
name: z.string().optional().describe('The name of the channel'),
name: z.string().nullish().describe('The name of the channel'),
topic: z.string().nullish().describe('The topic of the channel'),
url: z.url().nullish().describe('The URL associated with the channel'),
icon: z.string().nullish().describe('The icon hash of the channel (for group DMs)'),
@@ -141,7 +141,7 @@ export interface ChannelOverwrite {
export interface Channel {
readonly id: string;
readonly guild_id?: string;
readonly name?: string;
readonly name?: string | null;
readonly topic?: string | null;
readonly url?: string | null;
readonly icon?: string | null;