#hi quick question

9 messages · Page 1 of 1 (latest)

undone anvil
#

Hello,

I am currently developing a bot that integrates with TempVoice and wanted to ask about a specific feature.

My bot is designed so that each temporary voice channel (or a designated interface channel) contains a message with a button. This button allows the channel owner to add users to a whitelist. Users on this whitelist can mute, deafen, or disconnect members within that temporary voice channel. If someone who is not on the whitelist performs any of these actions, the bot will automatically remove their roles.

My question is: does TempVoice provide any API, event, or method that allows my bot to reliably determine whether a temporary voice channel belongs to a specific user (i.e., identify the channel owner)?

Thank you in advance for your help.

undone anvil
#

I'm not really good at scripting I will be probably using an ai

ripe flax
# undone anvil Hello, I am currently developing a bot that integrates with TempVoice and wante...

Hi @undone anvil, interesting to see your approach, unfortunately we don’t provide any API about temporary channels.

Aside from this, it would cause issues to give members permissions to mute/deaf. Doing this is global, so a muted user stays muted when joining another voice channel.

Also when a user locks/hide/trusts/blocks/etc with TempVoice, the TempVoice will overwrite all permissions, so the permissions your bot added, will be overwritten.

So rather then scripting something yourself with ai, we could turn this in a suggestion for TempVoice.

A few years ago we had a similar feature, which allowed the channel owner to add „moderators“ which could also control the channel with the interface and /voice commands.

I could image to bring this feature back Wumpus_Hello

undone anvil
ripe flax
#

Mhm sounds a bit complicated

undone anvil
#

i've made ai rewrite my response maybe you got understand me better

#

n my server, there are around 1000 members with roles that grant mute and deafen permissions. However, they are only supposed to use these permissions within their own temporary voice channels.

The issue is that some users join other people’s temporary channels and misuse these permissions by muting members there. Currently, the channel owner has to report this behavior and open a ticket, which can be time-consuming.

That’s why I wanted to implement a whitelist system — so only approved users (or the channel owner and their trusted members) can use these permissions within a specific temporary channel. This would help prevent misuse and automate moderation instead of relying on manual reports.

ripe flax
# undone anvil i've made ai rewrite my response maybe you got understand me better

I already understood it that way, just the way how you handle it is complicated and automating this will solve the issue of muting users inside other voice channel but does not solve the issue of global mutes.

A muted user stays muted even when switching to another temporary channel.

But I just wanna warn you, if you’re convinced it’s a good idea then here is a way to know the owner of the channel:

  1. Setup a greeting message:
    https://easy.tempvoice.xyz/settings/others/greeting

  2. Use the {OWNER_MENTION} placeholder for the greeting message.

When a user creates a temporary channel, TempVoice will ping the owner in its in-voice chat.

That’s the way to find out who is the owner of the channel. Then you can handle your whitelist stuff

Sends a message to the temporary voice channel’s text chat when it’s created, optionally including an TempVoice Interface.