Discord.net: Move voice users (help)

Created on 1 Dec 2017  路  5Comments  路  Source: discord-net/Discord.Net

Hey, I am trying to make my bot move voice users to a specific channel, nowhere can I find a way to move the user.

Thanks.

question

All 5 comments

You can use IGuildUser.ModifyAsync

https://discord.foxbot.me/docs/api/Discord.GuildUserProperties.html#Discord_GuildUserProperties_Channel

(You can also join the Discord API and directly ask in #dotnet_discord-net)

How would you go about using that? I'm fairly new to C# and all that just went right over my head.

It takes a lambda expression taking a GuildUserProperties as an argument. To be short, x => x.Channel = myChannel will move a user to the voice channel represented by myChannel.

Read more about lambda expressions

I believe this issues is resolved and can be closed.

Looks like this has been resolved, if you have further questions please feel free to reopen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GHosaPhat picture GHosaPhat  路  7Comments

AshkoreDracson picture AshkoreDracson  路  8Comments

Kwoth picture Kwoth  路  8Comments

tacitusxo picture tacitusxo  路  4Comments

foxbot picture foxbot  路  4Comments