diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index e65ad5ebdedf..cddfde3b9f2f 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -412,7 +412,7 @@ class GuildChannel extends Channel { /** * Sets a new topic for the guild channel. - * @param {string} topic The new topic for the guild channel + * @param {?string} topic The new topic for the guild channel * @param {string} [reason] Reason for changing the guild channel's topic * @returns {Promise} * @example diff --git a/typings/index.d.ts b/typings/index.d.ts index 381686ccc97a..3b4189bf0171 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -821,7 +821,7 @@ declare module 'discord.js' { options?: { lockPermissions?: boolean; reason?: string }, ): Promise; public setPosition(position: number, options?: { relative?: boolean; reason?: string }): Promise; - public setTopic(topic: string, reason?: string): Promise; + public setTopic(topic: string | null, reason?: string): Promise; public updateOverwrite( userOrRole: RoleResolvable | UserResolvable, options: PermissionOverwriteOption,