discordrb icon indicating copy to clipboard operation
discordrb copied to clipboard

fix: make Message#author lazy

Open biqqles opened this issue 2 years ago • 1 comments

Summary

Fixes #117. Calling Message#author will still result in 'Unknown Member' being printed if the member does not exist (don't think there's a way to hide this? It is kinda annoying), but it won't hang instantiators of Message such as Channel#history.

This is a bit rough right now but functional, will make a cleanup pass when I have more time.


Fixed

  • Reimplemented Message#author as a method instead of an attribute

biqqles avatar Mar 06 '23 16:03 biqqles

Thanks for the PR! Just some minor things to work through before we get it merged

swarley avatar Mar 06 '23 16:03 swarley