Open beanbeanjuice opened 2 years ago
Hi, thanks for this great bot!
To me, it seems like we're trying to remove an element from an ArrayList while iterating through the list. This would be my idea for a solution: https://github.com/TannersAndRodents/cafeBot/commit/44733f9afa121463ea6981f6c535e898824f5858 However, there could be a better workaround I'm not familiar with (Maybe using an iterator directly).
I'm new to Discord bots so I could not test my idea, but I hope it is helpful.
Hi, thanks for this great bot!
To me, it seems like we're trying to remove an element from an ArrayList while iterating through the list. This would be my idea for a solution: TannersAndRodents@44733f9 However, there could be a better workaround I'm not familiar with (Maybe using an iterator directly).
I'm new to Discord bots so I could not test my idea, but I hope it is helpful.
Thank you! Yeah, I created this section of the bot a long time ago, and it is indeed due for a complete refactor. This workaround looks not only cleanerbut also should stop the issues I've been having specifically with this class.
Describe the Bug
Checklist: