Break out of a for loop with a discord command.

Ok so I’ve made a discord bot which with the use of a command, begins a for loop of a certain thing. However, I can’t seem to find a way to make a command which stops the loop… Would be amazing to get help on this topic.

return? break? throw? They all stop loops (edit: sorry, was using JS terminology, would be raise not throw)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.