@@ -25,6 +25,8 @@ type Members interface {
25
25
26
26
UpdateCurrentMember (guildID snowflake.ID , nick string , opts ... RequestOpt ) (* string , error )
27
27
28
+ GetCurrentUserVoiceState (guildID snowflake.ID , opts ... RequestOpt ) (* discord.VoiceState , error )
29
+ GetUserVoiceState (guildID snowflake.ID , userID snowflake.ID , opts ... RequestOpt ) (* discord.VoiceState , error )
28
30
UpdateCurrentUserVoiceState (guildID snowflake.ID , currentUserVoiceStateUpdate discord.CurrentUserVoiceStateUpdate , opts ... RequestOpt ) error
29
31
UpdateUserVoiceState (guildID snowflake.ID , userID snowflake.ID , userVoiceStateUpdate discord.UserVoiceStateUpdate , opts ... RequestOpt ) error
30
32
}
@@ -105,6 +107,16 @@ func (s *memberImpl) UpdateCurrentMember(guildID snowflake.ID, nick string, opts
105
107
return
106
108
}
107
109
110
+ func (s * memberImpl ) GetCurrentUserVoiceState (guildID snowflake.ID , opts ... RequestOpt ) (state * discord.VoiceState , err error ) {
111
+ err = s .client .Do (GetCurrentUserVoiceState .Compile (nil , guildID ), nil , & state , opts ... )
112
+ return
113
+ }
114
+
115
+ func (s * memberImpl ) GetUserVoiceState (guildID snowflake.ID , userID snowflake.ID , opts ... RequestOpt ) (state * discord.VoiceState , err error ) {
116
+ err = s .client .Do (GetUserVoiceState .Compile (nil , guildID , userID ), nil , & state , opts ... )
117
+ return
118
+ }
119
+
108
120
func (s * memberImpl ) UpdateCurrentUserVoiceState (guildID snowflake.ID , currentUserVoiceStateUpdate discord.CurrentUserVoiceStateUpdate , opts ... RequestOpt ) error {
109
121
return s .client .Do (UpdateCurrentUserVoiceState .Compile (nil , guildID ), currentUserVoiceStateUpdate , nil , opts ... )
110
122
}
0 commit comments