zD12 / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

How do you get a user and channel object from a string? #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As of pircbotx 2.0 a lot of stuff has been removed from the PircBotX object, 
I've found most of them, but i cant for the life of me seem to find a way to 
get a user object with a string, or get a channel object with a string

Original issue reported on code.google.com by zcrai...@gmail.com on 9 Nov 2013 at 8:46

GoogleCodeExporter commented 9 years ago
User and channel information has been moved to the UserChannelDao class. 

User person = bot.getUserChannelDao().getUser("SomeUserName")
Channel myChannel = bot.getUserChannelDao().getChannel("#MyChannel")

Please use the mailing list for support questions

Original comment by Lord.Qua...@gmail.com on 9 Nov 2013 at 10:02