Trying to write a #discord bot in #serenity using #rustlang, but am a bit confused at how you are supposed to do certain things. Like how do you correctly work with the cache to fetch a guild name? Or how to put dynamic trait objects into the data typemap. Hope i figure it out soon
@LichtMarv How'd it go?
@finnbar_m ngl i think my approch was just wrong. Instead of trying to fit all my global state into the data typemap im now having my own struct representing my whole bot, and i just store global state there and give out references when needed. Im sure i will have other issues with that approch later, but for now it seems to do the trick. But i still dont know how one is supposed to get the name of a guild given its id... anyways so far im pretty sure doing it in rust was a good decision.