Im writing a Ticket system for my Discord server at the moment, and im attempting to add all roles with moderation permissions to the channel
this is my current code:
public async static ITextChannel CreateTicketChannel(InteractionModuleBase interaction)
{
ITextChannel channel = await interaction.Context.Guild.CreateTextChannelAsync(Guid.NewGuid().ToString(), c => c.CategoryId = Utils.ChannelConfig["ticket_category"]);
await channel.AddPermissionOverwriteAsync(interaction.Context.Guild.EveryoneRole, OverwritePermissions.DenyAll(channel));
await channel.AddPermissionOverwriteAsync(/* This is where its supposed to pick roles with moderation permissions*/, OverwritePermissions.AllowAll(channel));
await channel.AddPermissionOverwriteAsync(interaction.Context.User, OverwritePermissions.AllowAll(channel));
return channel;
}