starting research for vc support #3
@ -96,3 +96,9 @@ func (m *Message) Respond(res string) error {
|
|||||||
_, err := m.sesh.ChannelMessageSendComplex(m.channelID, rep)
|
_, err := m.sesh.ChannelMessageSendComplex(m.channelID, rep)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// joins the message author's voice channel. Returns the voice connection object, this connection must be cleaned
|
||||||
|
// up by the client to prevent issues
|
||||||
|
func (m *Message) JoinVoiceChannel() (*dg.VoiceConnection, error) {
|
||||||
|
return m.sesh.joinUserVoice(m.serverID, m.ID, m.sesh.Session)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user