Skip to content

Commit b9ad510

Browse files
authored
fix(GuildChannel): make setTopic argument nullable (#4875)
1 parent d234165 commit b9ad510

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/structures/GuildChannel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ class GuildChannel extends Channel {
412412

413413
/**
414414
* Sets a new topic for the guild channel.
415-
* @param {string} topic The new topic for the guild channel
415+
* @param {?string} topic The new topic for the guild channel
416416
* @param {string} [reason] Reason for changing the guild channel's topic
417417
* @returns {Promise<GuildChannel>}
418418
* @example

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ declare module 'discord.js' {
821821
options?: { lockPermissions?: boolean; reason?: string },
822822
): Promise<this>;
823823
public setPosition(position: number, options?: { relative?: boolean; reason?: string }): Promise<this>;
824-
public setTopic(topic: string, reason?: string): Promise<this>;
824+
public setTopic(topic: string | null, reason?: string): Promise<this>;
825825
public updateOverwrite(
826826
userOrRole: RoleResolvable | UserResolvable,
827827
options: PermissionOverwriteOption,

0 commit comments

Comments
 (0)