Create Guild Channel

ORCAcode discord_create_guild_channel(struct discord *client, u64_snowflake_t guild_id, struct discord_create_guild_channel_params *params, struct discord_channel *ret)

Create a new guild channel.

Note

Requires the MANAGE_CHANNELS permission

Note

If setting permission overwrites, only permissions your bot has in the guild can be allowed/denied. Setting MANAGE_ROLES permission in channels is only possible for guild administrators

Note

Fires a Channel Create event

Parameters
  • client – the client created with discord_init()

  • guild_id – id of the guild to create a channel at

  • params – request parameters

  • ret – if successful, a discord_channel that should be free’d with discord_channel_cleanup()

Returns

ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary

Warning

doxygenstruct: Cannot find class “discord_create_guild_channel_params” in doxygen xml output for project “Orca” from directory: ../xml