mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
docs: permission overwrite methods descriptions (#5079)
* Change permission overwrite methods descriptions The methods `GuildChannel#updateOverwrite` and `#createOverwrite` had some awkward wording in the description: `. (...)` does not look good. This PR cleans up the descriptions to be one sentence that's clearer in meaning. There's also changes to make `permission overwrite/s` consistent - some lines had `permissions overwrite/s`. * Update src/structures/GuildChannel.js Co-authored-by: SpaceEEC <spaceeec@yahoo.com> * Update src/structures/GuildChannel.js Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> * Update src/structures/GuildChannel.js Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: SpaceEEC <spaceeec@yahoo.com> Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
@@ -213,7 +213,7 @@ class GuildChannel extends Channel {
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates Overwrites for a user or role in this channel. (creates if non-existent)
|
||||
* Updates permission overwrites for a user or role in this channel, or creates an entry if not already present.
|
||||
* @param {RoleResolvable|UserResolvable} userOrRole The user or role to update
|
||||
* @param {PermissionOverwriteOptions} options The options for the update
|
||||
* @param {string} [reason] Reason for creating/editing this overwrite
|
||||
@@ -236,13 +236,13 @@ class GuildChannel extends Channel {
|
||||
}
|
||||
|
||||
/**
|
||||
* Overwrites the permissions for a user or role in this channel. (replaces if existent)
|
||||
* Creates permission overwrites for a user or role in this channel, or replaces them if already present.
|
||||
* @param {RoleResolvable|UserResolvable} userOrRole The user or role to update
|
||||
* @param {PermissionOverwriteOptions} options The options for the update
|
||||
* @param {string} [reason] Reason for creating/editing this overwrite
|
||||
* @returns {Promise<GuildChannel>}
|
||||
* @example
|
||||
* // Create or Replace permissions overwrites for a message author
|
||||
* // Create or Replace permission overwrites for a message author
|
||||
* message.channel.createOverwrite(message.author, {
|
||||
* SEND_MESSAGES: false
|
||||
* })
|
||||
|
||||
Reference in New Issue
Block a user