setPublicUpdateChannel method
Update public updates channel of this
final TextChannel channel = guild.channels.cache.getOrFail('240561194958716924');
await guild.setPublicUpdateChannel(channel);
Implementation
Future<void> setPublicUpdateChannel (TextChannel channel) async {
Response response = await ioc.use<DiscordApiHttpService>().patch(url: "/guilds/$id")
.payload({ 'public_updates_channel_id': channel.id })
.build();
if (response.statusCode == 200) {
_publicUpdatesChannelId = channel.id;
publicUpdatesChannel = channel;
}
}