ItsDrike / CommandBot

Discord Bot which can handle most administrative tasks for servers.
Other
0 stars 0 forks source link

Infractions don't work without description #43

Closed ItsDrike closed 4 years ago

ItsDrike commented 4 years ago

After #23 was merged if the description is not passed to new infractions it will result in an error, since self.result in infraction will explicitly be set to None which is then ignored by the automatic SQLite sanitization of strings. Therefore every time there is an infraction without reason, it should be explicitly set to "None" string instead of being None directly.