RestCord logo RestCord

deleteOrcloseChannel

$client->channel->deleteOrcloseChannel($parameters);

Description

Delete a guild channel, or close a private message. Requires the 'MANAGE_CHANNELS' permission for the guild. Fires a Channel Delete Gateway event.

Parameters

Name Type Required Default
channel.id snowflake true null

Response

Returns a guild channel or dm channel object on success.

Can Return: