setGuildAfkChannel


General

setGuildAfkChannel sets the guild's AFK (Away From Keyboard) voice channel.


Usage

Client:setGuildAfkChannel(<string> afkChannelId, (string) reason)
Returns: <Guild> guild


Limitations

See discordGuild PATCH.


Example

print(Client:setGuildAfkChannel('561553820367454219', 'New afk channel :D').afkChannel.name)

Back to top