async def run_cancel(self, context, type): user = User(context.message.author.id, context.guild.id, context) user.delete_goal(type) return await context.send( user.get_mention() + ', ' + lib.get_string('goal:givenup', user.get_guild()))
async def run_cancel(self, context): user = User(context.message.author.id, context.guild.id, context) # Currently only daily goals implemented type = 'daily' user.delete_goal(type) return await context.send( user.get_mention() + ', ' + lib.get_string('goal:givenup', user.get_guild()))