The Husqy premium subscription is now live! Please head over to our Discord store page to get started!
We are verified! Husqy is a verified bot in Discord making us visible in the app discovery and enabling bigger trust to users!
Want to help us translate the Husqy responses? We can't do it without you! Please visit our translations repo!
Skip to main content

Husqy API tempchannels module

General

Endpoints related to general Husqy Modules Tempchannels.

GET - /modules/tempchannels/

Home endpoint for the Modules Tempchannels Husqy API. Returns only success message displaying that it is the Modules Tempchannels Husqy API route.

DELETE - /modules/tempchannels/delete

Delete all data of the tempchannels module for a specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to delete the data from

Possible errors:

  • BadRequestError

Status

Endpoints related to the status of the module

GET - /modules/tempchannels/status

Get the status of the tempchannels module for the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to check the status of

Possible errors:

  • BadRequestError
  • SettingsError
POST - /modules/tempchannels/enable

Endpoint to enable the tempchannels module for the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to enable the tempchanenls module for

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleEnabledError
  • DatabaseError
POST - /modules/tempchannels/disable

Endpoint to disable the tempchannels module for the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to disable the tempchannels module for

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • DatabaseError
  • InternalServerError

Creation channels

Endpoints related to creation channels.

GET - /modules/tempchannels/creation-channels

Get the current known list of creation channels of the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known tempchannels of
pagenointegerThe page number to get (default = 1)
page_sizenointegerThe amount of entries to return in one page (default = 10)

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
POST - /modules/tempchannels/creation-channels

Get the current known list of creation channels of the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known tempchannels of
creation_channel_nameyesstringThe name to give to the creation channel. Can be "default"
create_voice_channelyesbooleanIf a temporary voice channel should be created when the creation channel is joined
voice_channel_nameyesstringThe name to give to the temporary voice channels created by the creation channel
voice_channel_category_idyesinteger or stringThe ID of the category where temporary voice channels will be created. Can be "create" or "same as creation"
create_text_channelyesbooleanIf a temporary text channel should be created when the creation channel is joined
text_channel_nameyesstringThe name to give to the temporary text channels created by the creation channel
text_channel_category_idyesinteger or stringThe ID of the category where temporary text channels will be created. Can be "create", "same as creation" or "same as voice"
tempchannel_create_category_idyesinteger or stringThe ID of the category where the creation channel will be created. Can be "create"

Possible errors:

  • BadRequestError
  • DatabaseError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
GET - /modules/tempchannels/creation-channel/{creation_channel_id}

Get the configuration of the specified creation channel in the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known tempchannels of

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
DELETE - /modules/tempchannels/creation-channel/{creation_channel_id}

Get the current known list of creation channels of the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known tempchannels of

Possible errors:

  • BadRequestError
  • DatabaseError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
PUT - /modules/tempchannels/creation-channel/{creation_channel_id}

Edit the configuration of the creation channel in the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known tempchannels of
creation_channel_nameyesstringThe name to give to the creation channel.
create_voice_channelyesbooleanIf a temporary voice channel should be created when the creation channel is joined
voice_channel_nameyesstringThe name to give to the temporary voice channels created by the creation channel
voice_channel_category_idyesinteger or stringThe ID of the category where temporary voice channels will be created. Can be "create" or "same as creation"
create_text_channelyesbooleanIf a temporary text channel should be created when the creation channel is joined
text_channel_nameyesstringThe name to give to the temporary text channels created by the creation channel
text_channel_category_idyesinteger or stringThe ID of the category where temporary text channels will be created. Can be "create", "same as creation" or "same as voice"

Possible errors:

  • BadRequestError
  • DatabaseError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/creation-channel/check-manual-delete
danger

Do not use this endpoint yourself! Creation channels will be checked for manual delete by Husqy when needed.

Endpoint to check if a manually deleted channel was is a creation channel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to check for the deletion of the tempchannel
deleted_channel_idyesintegerThe ID of the channel that has been deleted manually

Possible errors:

  • BadRequestError
  • SettingsError
  • DatabaseError
  • ModuleDisabledError
  • InternalServerError

Tempchannels

Endpoints related to the (possibly) known tempchannels of the module

GET - /modules/tempchannels/tempchannels

Get the current known active tempchannels of the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known tempchannels of

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
GET - /modules/tempchannels/tempchannel/{tempchannel_id}

Get the information of the specified tempchannel set in the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known tempchannels of

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
POST - /modules/tempchannels/tempchannel/check/create
danger

Do not use this endpoint yourself! Tempchannels will be created by Husqy when needed.

Endpoint to add a new tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to check for the creation of the tempchannel
creation_channel_idyesintegerThe ID of the channel the member has joined and triggered the check

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • DatabaseError
  • InternalServerError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/check/delete
danger

Do not use this endpoint yourself! Tempchannels will be deleted by Husqy when needed.

Endpoint to delete a known tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to check for the deletion of the tempchannel
target_tempchannel_idyesinteger(May be None) The ID of the channel the member has left and triggered the check

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
POST - /modules/tempchannels/tempchannel/check/manual-delete
danger

Do not use this endpoint yourself! Tempchannels will be checked for manual delete by Husqy when needed.

Endpoint to check if a manually deleted channel was is a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to check for the deletion of the tempchannel
deleted_channel_idyesintegerThe ID of the channel that has been deleted manually

Possible errors:

  • BadRequestError
  • SettingsError
  • DatabaseError
  • ModuleDisabledError
  • InternalServerError
POST - /modules/tempchannels/tempchannel/check/set-last-activity
danger

Do not use this endpoint yourself! Temporary text channels will be marked as active by Husqy when needed.

Endpoint to update the last activity in a temporary text channel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to check for the deletion of the tempchannel
temptext_channel_idyesintegerThe ID of the channel where a message has been sent in

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError

Tempchannel edits

Endpoints related to the editing the settings of a tempchannel

POST - /modules/tempchannels/tempchannel/edit/set-name
danger

Do not use this endpoint yourself! Use the /tempchannel edit name command instead.

Endpoint to set the name of a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of the tempchannel to edit
nameyesstringThe new name to give
channel_idyesintegerThe ID of the channel where the /tempchannels edit name command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/set-user-limit
danger

Do not use this endpoint yourself! Use the /tempchannel edit user_limit command instead.

Endpoint to set the user limit of a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of the tempchannel to edit
user_limityesintegerThe new user limit. Must be between 0 and 99
channel_idyesintegerThe ID of the channel where the /tempchannels edit user_limit command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/set-slowmode
danger

Do not use this endpoint yourself! Use the /tempchannel edit slowmode command instead.

Endpoint to set the slowmode timeout of a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of the tempchannel to edit
timeoutyesintegerThe new slowmode timeout
channel_idyesintegerThe ID of the channel where the /tempchannels edit slowmode command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/set-bitrate
danger

Do not use this endpoint yourself! Use the /tempchannel edit bitrate command instead.

Endpoint to set the bitrate of a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of the tempchannel to edit
bitrateyesintegerThe new bitrate in kbps. Must be between 8 and 96.
channel_idyesintegerThe ID of the channel where the /tempchannels edit bitrate command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/set-region
danger

Do not use this endpoint yourself! Use the /tempchannel edit region command instead.

Endpoint to set the region of a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of the tempchannel to edit
regionyesintegerThe ID of the Discord region.
channel_idyesintegerThe ID of the channel where the /tempchannels edit region command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/set-age-restriction
danger

Do not use this endpoint yourself! Use the /tempchannel edit age_restriction command instead.

Endpoint to set the age restriction setting of a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of the tempchannel to edit
age_restrictedyesbooleanIf the channel must be age restricted.
channel_idyesintegerThe ID of the channel where the /tempchannels edit age_restriction command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/transfer
danger

Do not use this endpoint yourself! Use the /tempchannel edit transfer command instead.

Endpoint to transfer ownership of a tempchannel set.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of one of the tempchannels in the tempchannel set to edit
new_owneryesintegerIf ID of the new owner.
channel_idyesintegerThe ID of the channel where the /tempchannels edit transfer command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/claim
danger

Do not use this endpoint yourself! Use the /tempchannel edit claim command instead.

Endpoint to claim ownership of a tempchannel set.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of one of the tempchannels in the tempchannel set to claim
channel_idyesintegerThe ID of the channel where the /tempchannels edit claim command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/delete
danger

Do not use this endpoint yourself! Use the /tempchannel edit delete command instead.

Endpoint to delete a tempchannel set.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_deleteyesintegerThe channel ID of one of the tempchannels in the tempchannel set to delete
channel_idyesintegerThe ID of the channel where the /tempchannels edit claim command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/add-block-rule
danger

Do not use this endpoint yourself! Use the /tempchannel edit add_block_rule_role or /tempchannel edit add_block_rule_member command instead.

Endpoint to add a block rule to a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of one of the tempchannels in the tempchannel set to edit
target_is_roleyesbooleanIf the target is a role
target_idyesintegerThe ID of the target (member ID or role ID)
channel_idyesintegerThe ID of the channel where the /tempchannels edit add_block_rule_{target} command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/remove-block-rule
danger

Do not use this endpoint yourself! Use the /tempchannel edit remove_block_rule_role or /tempchannel edit remove_block_rule_member command instead.

Endpoint to remove a block rule from a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of one of the tempchannels in the tempchannel set to edit
target_is_roleyesbooleanIf the target is a role
target_idyesintegerThe ID of the target (member ID or role ID)
channel_idyesintegerThe ID of the channel where the /tempchannels edit remove_block_rule_{target} command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/add-trust-rule
danger

Do not use this endpoint yourself! Use the /tempchannel edit add_trust_rule_role or /tempchannel edit add_trust_rule_member command instead.

Endpoint to add a trust rule to a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of one of the tempchannels in the tempchannel set to edit
target_is_roleyesbooleanIf the target is a role
target_idyesintegerThe ID of the target (member ID or role ID)
channel_idyesintegerThe ID of the channel where the /tempchannels edit add_trust_rule_{target} command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /modules/tempchannels/tempchannel/edit/remove-trust-rule
danger

Do not use this endpoint yourself! Use the /tempchannel edit remove_trust_rule_role or /tempchannel edit remove_trust_rule_member command instead.

Endpoint to remove a trust rule from a tempchannel.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the target tempchannel is located
tempchannel_id_to_edityesintegerThe channel ID of one of the tempchannels in the tempchannel set to edit
target_is_roleyesbooleanIf the target is a role
target_idyesintegerThe ID of the target (member ID or role ID)
channel_idyesintegerThe ID of the channel where the /tempchannels edit remove_trust_rule_{target} command is executed.
application_idyesintegerThe ID of the application interaction
tokenyesintegerThe token of the interaction

Possible errors:

  • BadRequestError
  • InternalServerError
  • SettingsError
  • ModuleDisabledError
  • DiscordApiInteractionError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},

Privacy

Endpoints related to privacy and the tags module

GET - /modules/tempchannels/privacy/get-user-entries
danger

Do not use this endpoint yourself! This endpoint will be used by Husqy's Privacy configurator (/privacy) command.

Endpoint to get the amount of references in tempchannels to your user.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the specified references in
privacy_member_idyesintegerThe ID of the member who wants to check their references

Possible errors:

  • BadRequestError
  • ForbiddenError
  • InternalServerError
DELETE - /modules/tempchannels/privacy/delete-user-entries
danger

Do not use this endpoint yourself! This endpoint will be used by Husqy's Privacy configurator (/privacy) command.

Endpoint to delete the references in tempchannels to your user.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to delete the specified references in
privacy_member_idyesintegerThe ID of the member who wants to remove their references

Possible errors:

  • BadRequestError
  • ForbiddenError
  • InternalServerError