NeuroAssassin / Toxic-Cogs

A collection of utility, moderation and fun plugins to Red - Discord Bot.
MIT License
47 stars 38 forks source link

[ReacTicket] Fix bug with [p]reacticket expecting ctx param #86

Closed Flame442 closed 1 year ago

Flame442 commented 1 year ago

Because [p]reacticket (and its subcommand settings) were defined outside of a class, then manually put in one, it was not getting passed an instance of self. This made self become a Context object, and ctx a required param. I moved the command definitions within the class it would eventually be defined in, and made the references to those commands in other files use the new path to those commands instead.