mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
fix(GuildChannel): make setTopic argument nullable (#4875)
This commit is contained in:
@@ -412,7 +412,7 @@ class GuildChannel extends Channel {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets a new topic for the guild 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
|
* @param {string} [reason] Reason for changing the guild channel's topic
|
||||||
* @returns {Promise<GuildChannel>}
|
* @returns {Promise<GuildChannel>}
|
||||||
* @example
|
* @example
|
||||||
|
|||||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -821,7 +821,7 @@ declare module 'discord.js' {
|
|||||||
options?: { lockPermissions?: boolean; reason?: string },
|
options?: { lockPermissions?: boolean; reason?: string },
|
||||||
): Promise<this>;
|
): Promise<this>;
|
||||||
public setPosition(position: number, options?: { relative?: boolean; reason?: string }): Promise<this>;
|
public setPosition(position: number, options?: { relative?: boolean; reason?: string }): Promise<this>;
|
||||||
public setTopic(topic: string, reason?: string): Promise<this>;
|
public setTopic(topic: string | null, reason?: string): Promise<this>;
|
||||||
public updateOverwrite(
|
public updateOverwrite(
|
||||||
userOrRole: RoleResolvable | UserResolvable,
|
userOrRole: RoleResolvable | UserResolvable,
|
||||||
options: PermissionOverwriteOption,
|
options: PermissionOverwriteOption,
|
||||||
|
|||||||
Reference in New Issue
Block a user