Skip to content

How to change the channel/category name? #1172

Closed Answered by valzargaming
pkSourceCode asked this question in Q&A
Discussion options

You must be logged in to vote
if ($channel = $discord->getChannel('id')) {
    $channel->name = "the-new-name";
    $channel->guild->channels->save($channel);
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@valzargaming
Comment options

Answer selected by valzargaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
awaiting confirmation The issue has been resolved, but awaits confirmation from the creator to confirm.
3 participants